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 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])
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.