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 hasnainrazaz
In general, you can "lock" the colors of the graph on the tooltips using conditional formatting and DAX.
To be 100% sure this is your scenario, it’s necessary to see what you are doing.
Therefore please
can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.