I am researching on how to create DAX formula to dynamically solve math exponentiation problems: calculate the n-th power of X.

I was thinking of creating two tables to represent a range of values for X and n, but how to use DAX to dynamically perform the calculation is still a myth to me.

Sam, thank you for replying, I went through the video but now I am confused regarding how to apply this knowledge to my question?

I meant to find a dynamic way using DAX so that I can flexibly find out the math calculation: X raised to the power of n.
For example 3 raised to the power of 5 would be 33333 = 243 (or 3^5 = 243). The idea is as long as I am feeding Power BI value of X and n, it can automatically calculate the answer…