The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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 |
---|---|
65 | |
62 | |
60 | |
53 | |
28 |
User | Count |
---|---|
181 | |
82 | |
67 | |
48 | |
44 |