Exponential growth isnβt just a buzzword - itβs real. And PowerFX gives you the tools to use it. The Exp()
function brings advanced, scientific calculation into your Power Apps, whether youβre building for business, finance, or research.
The Exp()
function raises the mathematical constant e (approximately 2.718) to the power you give it.
What is constant e? Euler's number, denoted by 'e', is an irrational and transcendental mathematical constant approximately equal to 2.71828.
I've tried to write quick and easy explanation and it turn's out, to get to the point it's not that easy - Not that I've tried.
Rather jump back in time and dig for math notes from collage, I've decided to engage AI friend for some help and write a description why is it important and where it's used. Which AI You might ask - Copilot, ChatGPT, Perplexity or other Gemini - let's keep that classified for marketing purposes π nevertheless answers are quite similar - seems like resources also π
Euler's Number can be defined in a few ways:
Euler's Number 'e' is fundamental because it describes processes where the rate of change of a quantity is proportional to the quantity itself. This "natural" rate of change makes it ubiquitous in modeling real-world phenomena.
d/dx ex = ex. This property vastly simplifies calculations involving continuous change. It's also the inverse of the natural logarithm
Euler's Number in the Financial World - have You ever heard of continuous compounding?
Euler's Number
Quick SummaryEuler's Number value is used in:
And as the base of Natural Algorithm.
Exp()
function does in PowerFX?So much introduction of Euler's Number to finally get to the chase π
Exp()
calculates Euler's Number e (approximately 2.718) to power of provided exponent. So, Your input is just the exponent, and output of Exp()
is eProvided Exponent
Perfect for scientific and financial models! π€―
//Definiton
Exp(0) β 1
Exp(1) β 2.71828183
Exp(-1) β 0.36787944
Exp(5) β 148.4131591
Exp(-0.5) β 0.60653066
Exp(0.5) β 1.64872127
//Local Variables
UpdateContext({loc_Number_Negative: -5});
Exp(loc_Number_Negative) β 0.00673795
UpdateContext({loc_Number_Exp: Exp(-5)});
loc_Number_Exp β 0.00673795
//Global Variables
Set(gl_Number_Negative, -1.5);
Exp(gl_Number_Negative) β 0.22313016
Set(gl_Number_Exp, Exp(3));
gl_Number_Exp β 20.08553692
//Named Formula
nf_Number_Negative = -2.5;
//Temporary Variable with Named Formula displaying value in label as String Interpolation
With(
{
_v_Example_Exp: Exp(nf_Number_Negative)
},
$"Euler's Number raised to power of negative number stored in named formula: {_v_Example_Exp}"
)
Outcome β Euler's Number raised to power of negative number stored in named formula: 0.082085
With(
{
_v_Example_Exp_Abs: Exp(
Abs(
nf_Number_Negative
)
)
},
$"Euler's Number raised to power of Absolute Value of negative number stored in named formula: {_v_Example_Exp_Abs}"
)
Outcome β Euler's Number raised to power of Absolute Value of negative number stored in named formula: 12.18249396
FYI - Absolute was topic of previous blog post/ newsletter.
Canvas Apps are mostly - but not always - used for business automations, therefore I do not see valid example to share at the moment.
Being totally transparent with You - I never had a business justification or a valid need to use Exp()
in other scenario than to educate myself, or do some testing for You.
Maybe that day will come, who knows! Currently we have the power of knowledge - being sure this function is here with us. Whenever the need will come - We will be ready π€©
To be sure I've asked our AI friends to give a hand with my assumption.
β
Score Normalisation:
π Give exponentially higher points as a user levels up - common in trainings, gamification, certification progress learning.
β
Time-Based Data Decay (e.g. Relevance Score)
π Older records can lose βrelevanceβ in dashboards or prioritization views - discussable
β Animation Speed or Delay Curve
β Impact Modeling in visualisations
β
Threat Level or Risk Index Growth
β
Productivity vs Time Chart
β Expecting Exp() to work as Power() - blindly mistake
π Exp()
takes Euler's Number as base - always. You cannot change the base as the only input You can provide - is the power of exponent
β Misunderstanding its simplicity
π Exp()
only provides Euler's Number raised to provided exponents. That is all. Don't overthink it.
β Misunderstanding the Error Handling
π There is no Error Handling included in Exp()
β Wonβt work on text:
π Valid input are numbers only. If number is provided as text - wrap in Value()
first
β Providing big exponential input:
π Feeding large inputs into Exp()
leads to very large outputs, be sure for what You need it to.
β Expecting Negative Inputs to Return Negatives
π Exp(-x)
never returns negative values. It returns a positive decimal in range 0 and 1. The bigger negative input, the closer to 0 we go, nevertheless remember that Canvas Apps are not working by default in more than 8 decimal places.
π Exp(-18)
will provide output 0.00000002, but Exp(-19)
can show 0.
β Ignoring Decimal Precision
π Exp()
results often have long decimals. You need it for something, therefore analyse if Round()
the number is required for Your scenario. Topic for another blog post
β Chaining Exp() Too Aggressively
π Stacking multiple Exp()
calls can cause massive numeric overflow.
β Forgetting Itβs Not Reversible by Power()
π Only Ln()
can reverse Exp()
, not Power()
- Topic for another blog post π
Exp()
π Exp()
raises Euler's Number e (~2.718) to a given power β excellent for growth, decay, and simulations.
π Exp()
is great to know and is academically useful, but almost never essential in real-life Canvas Apps, unless Your application is simulating a mathematical pattern or have custom and unusual analytical approach.
π Itβs the inverse of Ln()
.
π Exp()
is good-to-know but rarely-needed function - I'll risk that statement. If I am wrong - let me know!
π Example usage for level upsystems, time-based logic, and data transformation in advanced Power Apps.
π Combine with Ln()
, Power()
, or Round()
to create custom formulas with real-world intelligence.
π Watch the Reels π₯ : TikTok | Instagram | YouTube Shorts
π Swipe the Carousel: LinkedIn | Instagram
FYI: URLs will be activated soon π
Follow as we break down PowerFX - function by function - in the most visual, practical way on the internet.