Forum Discussion
indhu
8 years agoHelper III
Exponent calculation
Hi all, I have a column decimal with varying powers say 0,10,18,28 etc. Another column amount, which contains different values. My task is to create a new column which does the following functio...
- 8 years ago
Hi indhu,
In power query, we can add a custom column using the formula as below.
Custom = if [decimal]<>0 then 0.05*[amount]/Number.Power(10,[decimal]) else 0.05*[amount]/10
Here is the result as we excepted.
For more details, please check the pbix as attached.
https://www.dropbox.com/s/srngkyf65xim33h/Exponent%20calculation2.pbix?dl=0
Regards,
Frank
indhu
8 years agoHelper III
Hi v-frfei-msft,
Thanks frank.
This is a calculated column, right? Is there any way to generate the same result in a custom column?
Thanks,
Kanthi.
v-frfei-msft
8 years agoCommunity Support
Hi indhu,
In power query, we can add a custom column using the formula as below.
Custom = if [decimal]<>0 then 0.05*[amount]/Number.Power(10,[decimal]) else 0.05*[amount]/10
Here is the result as we excepted.
For more details, please check the pbix as attached.
https://www.dropbox.com/s/srngkyf65xim33h/Exponent%20calculation2.pbix?dl=0
Regards,
Frank