Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi all,
With the help from @amitchandak and @v-cgao-msft I managed to get previous year's closing values from column. Thank you, guys.
Now the problem is to get last year's closing value from measure. Measure itself work perfectly. Also SAMEPERIODLASTYEAR looks good. ROCE is calculated as follows:
Hope you can help.
Cheers,
J
Solved! Go to Solution.
you could try
ROCE_LY_EOY =
VAR CurrentYear =
YEAR ( MAX ( 'Dates'[Date] ) )
VAR LastYear = CurrentYear - 1
RETURN
CALCULATE (
ROCE[ROCE],
REMOVEFILTERS ( 'Dates' ),
TREATAS ( { ( LastYear, "December" ) }, 'Dates'[Year], 'Dates'[Month name] )
)
you could try
ROCE_LY_EOY =
VAR CurrentYear =
YEAR ( MAX ( 'Dates'[Date] ) )
VAR LastYear = CurrentYear - 1
RETURN
CALCULATE (
ROCE[ROCE],
REMOVEFILTERS ( 'Dates' ),
TREATAS ( { ( LastYear, "December" ) }, 'Dates'[Year], 'Dates'[Month name] )
)
User | Count |
---|---|
103 | |
87 | |
77 | |
70 | |
69 |
User | Count |
---|---|
112 | |
100 | |
98 | |
72 | |
66 |