Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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 |
---|---|
20 | |
14 | |
11 | |
8 | |
6 |
User | Count |
---|---|
23 | |
23 | |
20 | |
15 | |
10 |