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
mda
Advocate I
Advocate I

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

When I'm computing POWER(-0.93, 0.08) I'm getting this error:

 

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

 

Why DAX can't compute it?

The values don't seem to be too large or small.

 

The Windows calculator is returning me 0.99 as the result.

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

If you have both positive and negative numbers in a column you can use:

 

Column = SIGN([Column1]) * POWER(ABS([Column1]),0.08)

 

 


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

7 REPLIES 7
Anonymous
Not applicable

This is also an issue with the T.DIST.2T function -- if you feed it negative X to evaluate, it returns this error. ABS(X) beforehand solved this for me. Thanks.

Greg_Deckler
Super User
Super User

If you have both positive and negative numbers in a column you can use:

 

Column = SIGN([Column1]) * POWER(ABS([Column1]),0.08)

 

 


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

What if there are no negative numbers? I have the following formula which is not working

CAGR = POWER([total Visitors in 2019]/[total Visitors in 2016], (1/3))-1.
Please let me know how to fix this issue.

 

Hi , Instead power you should use this, (([total Visitors in 2019])^(1/3)/([total Visitors in 2016])^(1/3))-1) 

 

Anonymous
Not applicable

I have two caluclated measures in columns...[2020] and [2014]. I want to compute the CAGR and there are sign changes. I would like the end result to be [2020]/[2014]^(1/6)-1, but I get the Argument of function Power has the wrong data type...

 

How to I use your sign changes fix in a measure that calcualtes two columns?

Anonymous
Not applicable

I have the same problem. Is this cause i used two calculated measures as my x and y axes? What does wrong data type mean?
Anonymous
Not applicable

The issue is that you are doing a root of a negative number which will return a complex result.

 

The order of opperations is why google is giving you a result but what it is actually doing is -(0.93^0.08)

If you put (-0.93)^0.08 into google you will get what the POWER function is attempting which is 0.962976193 + 0.247250262 i

 

As far as I am aware Power BI has no support for complex or imaginary numbers. If you do want the result of -(0.93^0.08) then use the following

Measure = -1 * POWER ( -0.93, 0.08 ) 

or

-1 * ( 0.93 ^ 0.08 )

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.