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 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] )
)
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
User | Count |
---|---|
86 | |
84 | |
66 | |
62 | |
59 |
User | Count |
---|---|
194 | |
111 | |
105 | |
79 | |
71 |