Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
shstrr
Regular Visitor

DAX POWER Function (aka '^' or 'to the power off')

I am getting an Error when I am trying to use the standard POWER function cacluation in Power Pivot (DAX) environment. 

 

Specifically I want to create a Calculated Column 'Impact' based on 'simple' Arithmetic calculation of two columns

 

'Price Index' ^ 'Coefficient'.  

 

'Coefficient' is a fixed value that is unique to each Product. 'Price Index' is a Calculated Column where each Product's price in 2024 is indexed to the Product's price in 2023. ie for Product A June '24 'Price Index' = 'June '24 Price'/'June '23 Price'

 

Intuitively I want every row where a 'Price Index' exists to have an 'Impact' value ie

Product A - June '24  1.1^0.31 = 1.030

Product A - July '24 1.105^.31 = 1.032

Product B - June '24 1.140 ^ .20 = 1.027

repeat 

 

I am writing the formula in Dax as [Price Index]^[Coefficient] which results in an 'Error'. I am ok with an Error or missing values in rows where 'Price Index' does not exit. I have double checked using ISNUMBER function that both 'Price Index' and 'Coefficinent' are formatted as a decimal number. I have tried re-writing the formula as POWER ([Price Index], [Coefficient]) with similar results. 

 

I am struggling to find documentation on the 'POWER' function properties to help me resolve this error. Any tips? Thank you

 

ProductPeriodPricePrice IndexCoefficientImpact
Product AJune '23100 0.31 
Product AJuly '2395 0.31 
Product AAugust '2390 0.31 
Product AJune '241101.1000.311.030
Product AJuly '241051.1050.311.032
Product AAugust '24991.1000.311.030
Product BJune '2350 0.2 
Product BJuly '2352 0.2 
Product BAugust '2353 0.2 
Product BJune '24571.1400.21.027
Product BJuly '24561.0770.21.015
Product BAugust '24520.9810.20.996
2 ACCEPTED SOLUTIONS

you can replace COALESCE with IF(ISBLANK([Price Index]),1,[Price Index])

View solution in original post

thank you so much for your reply! This did not solve the issue, but your comment prompted me to review the original problem and indentify the source of the error. I shared an incomplete Table. True data looked like this, with the ∞ value in rows where 'Price Year Ago' was 0. It seems like DAX could not compute the POWER(∞, [Coefficient]) for certain rows and stopped calculating for all other rows as well.

 

I re-wrote the 'Price Index' calculated column with a IFERROR([Price]/[Price YA],1) so now every row is populated with either a 1 or 'Calculated Price Index'. 

 

Thank you again for your help. 

 

ProductPeriodPricePrice IndexCoefficientImpact
Product AJune '231000.31 
Product AJuly '23950.31 
Product AAugust '23900.31 
Product AJune '241101.10.311.03
Product AJuly '241051.1050.311.032
Product AAugust '24991.10.311.03
Product BJune '23500.2 
Product BJuly '23520.2 
Product BAugust '23530.2 
Product BJune '24571.140.21.027
Product BJuly '24561.0770.21.015
Product BAugust '24520.9810.20.996

View solution in original post

4 REPLIES 4
lbendlin
Super User
Super User

Not seeing the issue here?

 

lbendlin_0-1714427667334.png

 

Thank you so much for your quick reply. I am not seeing the COALESCE function in Power Pivot. Is your example executed in Power Pivot or another tool. Sorry for the beginner questions. I am just getting started in this field. 

you can replace COALESCE with IF(ISBLANK([Price Index]),1,[Price Index])

thank you so much for your reply! This did not solve the issue, but your comment prompted me to review the original problem and indentify the source of the error. I shared an incomplete Table. True data looked like this, with the ∞ value in rows where 'Price Year Ago' was 0. It seems like DAX could not compute the POWER(∞, [Coefficient]) for certain rows and stopped calculating for all other rows as well.

 

I re-wrote the 'Price Index' calculated column with a IFERROR([Price]/[Price YA],1) so now every row is populated with either a 1 or 'Calculated Price Index'. 

 

Thank you again for your help. 

 

ProductPeriodPricePrice IndexCoefficientImpact
Product AJune '231000.31 
Product AJuly '23950.31 
Product AAugust '23900.31 
Product AJune '241101.10.311.03
Product AJuly '241051.1050.311.032
Product AAugust '24991.10.311.03
Product BJune '23500.2 
Product BJuly '23520.2 
Product BAugust '23530.2 
Product BJune '24571.140.21.027
Product BJuly '24561.0770.21.015
Product BAugust '24520.9810.20.996

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.