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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
heardm
New Member

POWER function using DATEDIFF

I need to raise a value in one column to the date diff of two other columns. I calculated the DATEDIFF in a separate calculated column. All of the column values are around 4. Then I tried to make a new calculated column that raised column values to the power of that date difference, but I get this error

 

"An argument of function 'POWER' has the wrong data type or the result is too large or too small."

 

All of my columns have the data type "decimal number"

1 ACCEPTED SOLUTION
heardm
New Member

The problem was that I had previously divided two columns and if a row had a missing value I was given an answer of infinity, which I then tried to use in the POWER function

View solution in original post

3 REPLIES 3
heardm
New Member

The problem was that I had previously divided two columns and if a row had a missing value I was given an answer of infinity, which I then tried to use in the POWER function

v-jiascu-msft
Employee
Employee

Hi @heardm

 

Could you please mark the proper answer if it's convenient for you? That will be a help to others.

 

Best Regards!
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Chihiro
Solution Sage
Solution Sage

That error can be caused by having too large of a number in 2nd argument of POWER function as well.

 

See image for an example.

0.JPG

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.