Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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] )
)
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |