Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register 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: