Forum Discussion
How to filter a legend on a visual?
@helmsb One possible workaround - turn off the legend altogether. Then use a DAX formula to get the selected value for each filter condition and show it under the chart on a card.
Something like:
- Anonymous6 years agoNot applicable
Interesting idea! Would i be able to somehow format the cards to be a specific color tied to the specific filter condition? Otherwise it wont be possible to know which line is which in a scenario like this:
- sanimesa6 years ago
Post Prodigy
Anonymous Not sure about this - my assumption was you are showing only one line at a time. In which case you do not need the color to distinguish.
you may be able to set all the line colors of a particular type to a fixed color. So, assuming you have two filters and each correspond to a different color, you can probably use a fixed color on your card.
Again, I am probably not getting your use case completely.
- Anonymous6 years agoNot applicable
No problem. The reason why i really like this graph is that i can look at the market type or products of all my positions on the fly. So i can look at as many lines as i would like. I can compare Energy DA prices of all my positions or RT regulation prices of 2 positions, etc.
The only issue i have is the darn legend not dynamically updating to show what each line represents.