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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Hi @v-shex-msft 

 

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

 

 

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.