Join 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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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:
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 129 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |