Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
AlanP514
Post Patron
Post Patron

Dynamic Custom tooltip

Tooltip 2 =

var MySelection = SELECTEDVALUE('Year [Year sales])

return SWITCH(TRUE(),

MySelection="2019","2019 Cumulative",

MySelection="2020","2020 Cumulative",

MySelection="2021","2021 Cumulative",

MySelection="2022","2022 Cumulative",

MySelection="2023","2023 Cumulative",

MySelection="2024 ","2024 Cumulative",

"2019 Cumulative"

)


Hai All, I need your help on this, I had created a custom tooltip based on a single selection, and I need your help on Dax, when a user selects multiple selections, I want to make a custom tooltip based on multiple selections
Now Situation is like this
2019 ,2020,2021,2022,2023,2024 These are the slicers
and if the user selects 2019 custom tooltip will return “2019 cumulative”
The above one is correct but I want to add multiple selections as well

For e.g. If the user selects 2019 and 2020 I want to make a custom tooltip as 2019 && 2020 Cumulative
 If user select 2020 && 2021 == 2020 && 2021 Cumulative
if the user selects all options in slicer then All year cumulative

Please help
thanks

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@AlanP514 , Create a measure like

 

Concatenatex(Year,Year [Year sales], ", ")  & " Cumulative"

 

or

 

 

Concatenatex(values(Year[Year Sales],Year [Year sales], ", ")  & " Cumulative"

 

if needed use sort order option

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@AlanP514 , Create a measure like

 

Concatenatex(Year,Year [Year sales], ", ")  & " Cumulative"

 

or

 

 

Concatenatex(values(Year[Year Sales],Year [Year sales], ", ")  & " Cumulative"

 

if needed use sort order option

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.