Dustin Rocksvold.com
  1. You are here:  
  2. Home
  3. Power Apps

Handy Power Apps User Defined Functions

Details
Written by: Dustin Rocksvold
Category: Power Apps
Published: 19 April 2025
Hits: 300

Mathematical calculations 

udfMultiplyNumbers(Number1:Number, Number2:Number):Number = Number1 * Number2;

udfDivideNumbers(Number1:Number, Number2:Number):Number = Number1 / Number2;

udfAddNumbers(Number1:Number, Number2:Number):Number = Number1 + Number2;

udfSubtractNumbers(Number1:Number, Number2:Number):Number = Number1 - Number2;

udfCalculateVolumeOfCube(Length:Number, Width:Number, Height:Number):Number = Length * Width * Height;

udfCalculateVolumeOfSphere(PI:Number, Radius:Number):Number = 4 / 3 *PI * Radius ^ 3

udfCalculateAreaOfCircle(Radius:Number,PI:Number):Number = PI * Radius ^ 2

Water Calculations

Working as a hydro operator requires controlling the flow and storage of large volumes of water by monitoring and adjusting the amount of water travelling in water conveyances or passing through a hydraulic turbine to generate electricity.

I thought it would be handy to have functions to caluclate the flow and storage values. 

Typical units of flow meaurement include cubic feet per second (CFS), Acre-Feet per day (ACFT/Day). 

The typical unit of storage we use is Acre-Feet (ACFT).

There are several formulas to convert from flow to storage and vice-versa. I have created functions to allow the calculations to be made.  They are outlined below:

Read more: Handy Power Apps User Defined Functions

Main Menu

  • Home
  • Power Apps
  • Power Automate

Certifications

PAFundamentalsCertification

Login Form

  • Forgot your password?
  • Forgot your username?