Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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 |
---|---|
48 | |
44 | |
19 | |
14 | |
14 |
User | Count |
---|---|
107 | |
58 | |
29 | |
21 | |
16 |