Forum Discussion
How to use measure to display dynamic tooltip by Row Input on Matrix?
- Anonymous6 years ago
Thanks for all the replies! I've solved this issue using ISFILTERED as below
So when I'm at Vendor level on the Matrix, it pops up tooltip for Vendor-level indicator when hover over; when at Location level, it pops up for Location-level indicator....etc. The tooltip dynamically changes based on the hierarchy on the Matrix.
Tooltip = SWITCH(TRUE(), ISFILTERED(Table4[Vendor]), SUM(Table4[Indicator1]), ISFILTERED(Table3[Location]), SUM(Table3[Indicator1]), ISFILTERED(Table2[ID]), SUM(Table2[Indicator1]), ISFILTERED(Table1[Group]), SUM(Table1[Indicator1]) )
Hi Anonymous,
ISINSCOPE function is checked based on current row contents. When you use that formula on the card, It's row content is the whole table and corresponds filter effect which you applied on that table. So ISINSCOPE function not able to check on the different hierarchy levels.
For your scenario, you can add some visual level filters to a specific particular row content level.
Regards,
Xiaoxin Sheng
Thanks for all the replies! I've solved this issue using ISFILTERED as below
So when I'm at Vendor level on the Matrix, it pops up tooltip for Vendor-level indicator when hover over; when at Location level, it pops up for Location-level indicator....etc. The tooltip dynamically changes based on the hierarchy on the Matrix.
Tooltip =
SWITCH(TRUE(),
ISFILTERED(Table4[Vendor]),
SUM(Table4[Indicator1]),
ISFILTERED(Table3[Location]),
SUM(Table3[Indicator1]),
ISFILTERED(Table2[ID]),
SUM(Table2[Indicator1]),
ISFILTERED(Table1[Group]),
SUM(Table1[Indicator1])
)