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
Chanleakna123
Post Prodigy
Post Prodigy

wanna Convert -100.00% to Blank

Hi , i use above measure , and put in table , 

i wanna convert from -100.00% to o , can i ? 

 

Capture 1.PNG

1 ACCEPTED SOLUTION

3rd time's the charm!

Measure = 
VAR Val = DIVIDE( [Y_2021] , [Y_2021] , BLANK())
VAR Check = IF( Val = BLANK() , BLANK() , (Val^(1/2))-1 )
Return 
Check

Connect on LinkedIn

View solution in original post

9 REPLIES 9
v-juanli-msft
Community Support
Community Support

Hi @Chanleakna123 

Measure below:

MEASURE =
VAR D1 = ( [Y_2021] / [Y-2019] ) ^ ( 1 / 2 ) - 1
RETURN
    IF ( ISERROR ( D1 ), 0, IF ( D1 = -1, 0, D1 ) )

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-juanli-msft @tex628 @amitchandak  , all are work out , thanks you so much ^^

tex628
Community Champion
Community Champion

Try this, 

Measure = 
VAR Value = DIVIDE( [Y_2021] , [Y_2019] , BLANK())
Check = IF( Value = BLANK() , BLANK() , (Value^(1/2))-1
Return 
Check

Connect on LinkedIn

@tex628 it's red as below . 

 

Capture 1.PNG

Sorry, i was a little to quick! 

Measure = 
VAR Val = DIVIDE( [Y_2021] , [Y_2021] , BLANK())
VAR Check = IF( Val = BLANK() , BLANK() , (Value^(1/2))-1 )
Return 
Check


/J


Connect on LinkedIn

Capture 2.PNG

 

here , still error

@Chanleakna123 , you have val in your formula, not value?

I was the one that messed up the DAX 🙂

/ J


Connect on LinkedIn

3rd time's the charm!

Measure = 
VAR Val = DIVIDE( [Y_2021] , [Y_2021] , BLANK())
VAR Check = IF( Val = BLANK() , BLANK() , (Val^(1/2))-1 )
Return 
Check

Connect on LinkedIn

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.