Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi I am using a measure to show % the problem if there is no data in the future it is showing blank is there any chance can we show it as -100% like that
Solved! Go to Solution.
Try this
GBP % =
VAR CurrentYearASP = [sum GBP]
VAR PreviousYearASP =
CALCULATE ( [sum GBP], DATEADD ( 'Date table'[Date], -1, YEAR ) )
VAR _result =
DIVIDE ( CurrentYearASP - PreviousYearASP, PreviousYearASP )
RETURN
IF ( ISBLANK ( _result ), -1, _result )
Try this
GBP % =
VAR CurrentYearASP = [sum GBP]
VAR PreviousYearASP =
CALCULATE ( [sum GBP], DATEADD ( 'Date table'[Date], -1, YEAR ) )
VAR _result =
DIVIDE ( CurrentYearASP - PreviousYearASP, PreviousYearASP )
RETURN
IF ( ISBLANK ( _result ), -1, _result )
User | Count |
---|---|
56 | |
22 | |
19 | |
16 | |
11 |
User | Count |
---|---|
85 | |
54 | |
39 | |
21 | |
17 |