Forum Discussion
Is It Possible To Change Card Text Color Based On What You Click On Pie Chart?
Not with the default card that comes with Power BI. Card with States by OKViz allows you to change the card color. You'd have to look at it to see if it fits your needs.
- I_NeedMorePower7 years agoHelper III
Hello edhans,
I tried it and I don't think it helps with what I meant if i'm correct.
What i'm trying to achieve is to have the same colors that the power bi generates randomly each time we open the report to apply them on the text on the card visual. Is there some kind of DAX function that gets the colors the power bi assigns to values on the pie chart, bar charts and the other visuals?
For example, here is the pie chart I have, as you can see, these colors were assigned by power bi itself, what I want to do is if I clicked on and highlighted one of these colors, I want the text color on card visual to have the same color as the one I highlighted.
Is this possible?
Thanks for the help!
- edhans7 years agoCommunity Champion
Not that I am aware of. You'd have to dig into the custom visuals in the Power BI visual store and see if anyone has written such a thing.