Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
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
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 @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.
If you confused on coding formula, please share some sample data for test.(Notice: do mask on sensitive data before share)
Regards,
Xiaoxin Sheng
User | Count |
---|---|
126 | |
108 | |
99 | |
65 | |
62 |
User | Count |
---|---|
137 | |
116 | |
102 | |
71 | |
61 |