Forum Discussion
Tooltip Customization (Stacked & Column Chart)
- Anonymous1 year ago
Hi hasnainrazaz ,
Try getting the current legend, then returning the corresponding color based on the legend and applying it to the conditional format of tooltip's column chart.
Measure = VAR __product= SELECTEDVALUE('financials'[Product]) VAR __color = SWITCH( __product, "Amarilla","#845ec2", "Carretera","#d65db1", "Montana","#ff6f91", "Paseo","#ff9671", "Velo","#ffc75f", "VTT","#f9f871" ) RETURN __colorBest Regards,
Gao
Community Support TeamIf there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
Hi Ritaf1983 ,
Please refer to the images below:
In the second image; the tooltip bar charts ideally should be the color (orange) which is the color of the segment I hovered over to view the tooltip visual.
Regards,
Hi hasnainrazaz ,
Try getting the current legend, then returning the corresponding color based on the legend and applying it to the conditional format of tooltip's column chart.
Measure =
VAR __product= SELECTEDVALUE('financials'[Product])
VAR __color =
SWITCH(
__product,
"Amarilla","#845ec2",
"Carretera","#d65db1",
"Montana","#ff6f91",
"Paseo","#ff9671",
"Velo","#ffc75f",
"VTT","#f9f871"
)
RETURN
__color
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum