Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello,
I have three measures in a field parameter slicer:
Production
Production per hour
Occupancy rate
I also have three corresponding measure with sameperiodlastyear()
How can I project a comparison between the parameter measure and the corresponding previous year measure depending on the field parameter selection?
TIA,
Ludvig Reck
Solved! Go to Solution.
Solved it with calculation items and used it as legend
CY = SELECTEDMEASURE ()
PY = CALCULATE (
SELECTEDMEASURE ( ),
SAMEPERIODLASTYEAR ( Date[Date] ),
Date[IsPast] = TRUE ( )
)
Where Date[IsPast] is a calculated column with the following properties:
Solved it with calculation items and used it as legend
CY = SELECTEDMEASURE ()
PY = CALCULATE (
SELECTEDMEASURE ( ),
SAMEPERIODLASTYEAR ( Date[Date] ),
Date[IsPast] = TRUE ( )
)
Where Date[IsPast] is a calculated column with the following properties:
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.