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

Notifications

Announcements

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,554 Super User 2025 Season 2 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 386 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 321

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 311 Super User 2025 Season 2

Last 30 days Overall leaderboard