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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hello everyone.
I've created a report with a slicer for the year:
and a card that shows the revenues variation of the filtered year compared to the previous one.
Is it possible to create a function that can be used as the title of the card, which shows the year selected on the slicer and the previous one? My goal would be to have "Revenues % variation from 2018 to 2019", when 2019 is selected.
Thank you so much in advance!
Solved! Go to Solution.
@mtrevisiol , Yoy can create a measure and use that in the title . In title you can use a measure using fx
measure = "Revenues % variation from " & Selectedyear(Year[Year]) -1 " to " & Selectedyear(Year[Year])
@mtrevisiol
Create the following measure and assign it to the Title of the visual under conditional formatting (fx):
Title Year =
var __yr = SELECTEDVALUE(Dates[Year]) return
"Revenues % variation from " & __yr - 1 & " to " & __yr
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@mtrevisiol
Create the following measure and assign it to the Title of the visual under conditional formatting (fx):
Title Year =
var __yr = SELECTEDVALUE(Dates[Year]) return
"Revenues % variation from " & __yr - 1 & " to " & __yr
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@mtrevisiol , Yoy can create a measure and use that in the title . In title you can use a measure using fx
measure = "Revenues % variation from " & Selectedyear(Year[Year]) -1 " to " & Selectedyear(Year[Year])
User | Count |
---|---|
98 | |
75 | |
69 | |
49 | |
26 |