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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
bo_afk
Post Patron
Post Patron

Year on year difference for multiple metrics - on tooltips

Hi,

 

I currently have a treemap which displays different types of costs for the current year. On the tooltips, I would now like to display the year on year difference in number and also %, for each cost individually. i.e. if I hover over one cost, it will show the YoY difference just for that one.

 

Is there a single measure that allows this for all the metrics?

 

I started to create separate YoY measures for each cost but thought that this may not be the best approach especially if there are many costs involved.

 

Thanks

afk

3 REPLIES 3
Anonymous
Not applicable

Hi @bo_afk ,

Can you please provide some detail information to help us clarify your scenario?
If your records are stored as attribute/value format, you can use measure formula to get current row contents to calculate correspond records. Then you can use this measure to create a custom tooltip page.

Create tooltips based on report pages in Power BI Desktop
BTW, if your records are stored these types in different fields, it is hard to coding formula.

Regards,

Xiaoxin Sheng

Hi @Anonymous 

 

In my data I have several cost columns, Cost of Goods, Operations Costs and Fulfilment Costs. I've created a tree map to show ratio between these for the current year (2019).  The data also goes back a year to 2018.

 

What I would like to show as a tool tip, is the difference in cost year-on-year. So when I hover over "Cost of Goods" on the tree map, it'll show me the difference between 2018 and 2019. When I hover over "Operations Costs", it'll show me the difference for that cost.

 

Does this make sense?

 

Thanks,

afk

 

 

Anonymous
Not applicable

HI @bo_afk ,

Do unpivot column feature on the amount fields, then you can write measure to use current cost type and date to get difference between specific date range.

Unpivot columns (Power Query)

If you confused on coding formula, please share some sample data for test.(Notice: do mask on sensitive data before share)

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Solution Authors