I have a fairly simple line chart which uses a Top N (top 5) filter. No matter what the 5 top items are, I need to display the same 5 theme colors. This is easy to do with a bar chart using RANKX measure and conditional formatting, but the conditional formatting option isn't available for line charts. There must be a workaround for this, but I can't find anything. Does anyone here have the answer?
Currently , it is not supported to set conditional formatting for line chart in Power BI . There is an idea about this issue, please vote it up, Formatting, Annotating, and Highlighting Line Charts , add your comments there to improve Power BI and make this feature coming sooner.
While there is a workaround you may considerate. as amitchandak's suggestion, you may create a Clustered column chart, set conditional formatting in Data color section , format by "Field value" . Then convert the bar visual to line chart. For reference: https://www.youtube.com/watch?v=A4iG8S4EpHs .
Community Support Team _ Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.