Forum Discussion
number formating issue
thanks GilbertQ, got it. However, we would like to show "na" (also exclude some extreme number by using if(>100,"nm") ) instead of blank for presentation. is that any method to show text but also format the number as %?
Hi erihsehc
This could possibly done by using the Format as shown below.
My Measure =
IF (
[Net Win] > 100,
"nm",
FORMAT ( DIVIDE ( SUM('Table1'[sales]), SUM('Table1'[Other Sales]), "NA" ), "Percent" )
)- erihsehc8 years agoHelper III
thanks GilbertQ, this formula is working but there is another issue that, when I put this measure to a multi-row card, I can not format this %result, ("-1.28%" on the screenshot used this measure), I can not add label for it, and this % always stay on top, can not format the color and size.
- GilbertQ8 years agoSuper User
Hi erihsehc
Unfortunately there currently is no other way to format the measures so that they can change based on different scenario's.
I would suggest going to https://ideas.powerbi.com and voting for the idea.
- Anonymous8 years agoNot applicable
Could you consider a 2nd Formatting Measure for your cards? Something like
Formatted = Var MeasureResult = [YourMeasure] RETURN IF( MeasureResult = "na", "NA", (MeasureResult * 100) & "%" )
- v-huizhn-msft8 years agoMicrosoft Employee
Hi erihsehc,
As GilbertQ posted, there is no way to format the measure. Please mark the solution GilbertQ shared as answer because it resolve your issue. So that more people will get useful/helpful reply as answer.
Best Regards,
Angelia- erihsehc8 years agoHelper III
ok thanks for the help:manhappy: