Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi all,
With the help from @amitchandak and @Anonymous 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 |
---|---|
84 | |
76 | |
74 | |
48 | |
39 |
User | Count |
---|---|
114 | |
56 | |
51 | |
42 | |
42 |