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

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

Reply
Chanleakna123
Post Prodigy
Post Prodigy

an argument of function power has the wrong data type

hi all , the calculate are repeatedly good with Others , but when it comes to this one , it shown like this , 

it happens only with this formula , while CAGR2021Vs. 2019 and the rest are working normal , and i used the same things. 

and it happened only with NSR when i change filter to Volume ,it looks okay , how to settle this ?

 

1.PNG

1 ACCEPTED SOLUTION

Hi @Chanleakna123 ,

 

Use the formula below:

 

 

Check = IF(Val = BLank(),BLANK(),IF( Val<=0,"novalue",(Val^(1/2))-1))

 

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

View solution in original post

7 REPLIES 7
Greg_Deckler
Community Champion
Community Champion

@Chanleakna123 - If Val in your formula ends up negative, you will get that error.



Follow on LinkedIn
@ 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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler , you're right , i have negative volumn in the chat , that is why , so how to do it ? 

Hi @Chanleakna123 ,

 

This is a mathematical logic problem. Negative numbers cannot calculate with ^1/2. If you really need the value, just add ABS before val like: ABS(val).

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

@v-deddai1-msft  , yes i have perform this one 🙂 . but it sounds not righ 😞

since we turn Negative to Positive Number. 😞 

 

thx you 

Hi @Chanleakna123 ,

 

Use the formula below:

 

 

Check = IF(Val = BLank(),BLANK(),IF( Val<=0,"novalue",(Val^(1/2))-1))

 

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

amitchandak
Super User
Super User

@Chanleakna123 , is it possible that val^(1/2) is not possible for some value. Check the possible value of val. Also, check by removing this that is this causing a problem

I think blank many causing it make it 0 in place of blank in divide

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak  , can you recommend me , which formula that it should be right over this ? 
since , it this is CAGR formula, therefore the formula looks like this 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.