web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Doing maths with Text ...
Power Apps
Answered

Doing maths with Text Input

(0) ShareShare
ReportReport
Posted on by 133

Hi All,

I am doing maths with text input and am trying to find the volume of a Tube.

 

The formula for this is:

Pi R Cubed for the outer diameter

minus

Pi R Cubed for the inner diameter

multiplied by 

Length

 

LewisFoulger_1-1656594686968.png

 

Above is my code, is there an easier way to do this in powerapps?

Or is my code just wrong?

 

Thanks

Categories:
I have the same question (0)
  • timl Profile Picture
    36,770 Super User 2026 Season 1 on at

    @LewisFoulger 

    That looks ok to me. I think you mean "Pi R Squared", but that's correctly reflected in your formula.

    Some alternative functions you can consider here are:

    • Pi() - you can call this to avoid hard coding 3.142
    • Power - you can call this to square the radius, rather than multiplying it by itself
  • Verified answer
    TheRobRush Profile Picture
    11,128 Moderator on at

    to demonstrate what @timl  wa suggestign with pi & power here is a formula to calculate volume based on 3 text inputs 

    d1=Outer Diameter

    d2=inner diamter

    len=length

    Pi()*Sum(Sum(Sum(Power(d1,2),-1*Power(d2,2))/4)*len)

     

    checked outputs against Tube Volume Calculator and they match

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 509 Most Valuable Professional

#2
Haque Profile Picture

Haque 302

#3
11manish Profile Picture

11manish 265

Last 30 days Overall leaderboard