Forum Discussion
ppgandhi11
7 years agoHelper V
Data formatting question - Desktop
Hi, I have a measure that brings values for some of the records. So wherever it is applicable, it brings correct values. At other rows, it remains blank because it is not applicable there. I ...
- 7 years ago
ppgandhi11 try following
Measure Val = VAL myCalculation = SUM( Table1[Amount]) -- put your measure calculation here RETURN IF( myCalculation = BLANK(), "N/A", myCalculation)
dedelman_clng
7 years agoCommunity Champion
You can, but then you lose the formatting capability a measure being a number.
MeasureOrNA = var __MyMeasure = [Measure Calculation here] return IF ( ISBLANK( __MyMeasure), "N/A", __MyMeasure )
You may be able to use the FORMAT function (FORMAT( __MyMeasure, "Percent") to make it look like a percentage.
Hope this helps,
David