Forum Discussion

santiagoremon37's avatar
santiagoremon37
New Member
7 days ago
Solved

Wrong behaviour in conditional formatting for lines

There is an issue with the new conditional formatting for line color in line charts (Power BI Desktop August 2026, 2.157.879). When all values in the series are identical, the markers are displayed b...
  • ShivekMaharaj's avatar
    ShivekMaharaj
    4 days ago

    Hi santiagoremon37​,

    Thanks for testing this further and for sharing the PBIX. This is now a much stronger reproduction than the original flat-line case.

    Based on what you found, I would describe this as a reproducible interaction between conditional line colouring and the active report theme rather than state that we know the internal root cause.

    Microsoft's current conditional formatting documentation explicitly supports Field value formatting where a measure returns a colour name, hex code, or report-theme colour name.

    The report theme documentation describes dataColors as the palette used for data colours, but I do not see any documented requirement saying that a uniformly conditionally formatted line must use the first entry in dataColors.

    So the behaviour you reproduced does not appear to be an expected documented limitation.

    Your test case is particularly useful:

    • fixed line colour -> line renders
    • conditional colour with all points returning the same colour and that colour equals dataColors[0] -> line renders
    • conditional colour with all points returning the same colour but it differs from dataColors[0] -> markers remain, but the line stroke disappears
    • changing one value/colour -> line renders again
    • changing the theme so the returned colour becomes dataColors[0] -> line renders again

     

    I would report this now rather than keep changing the DAX.

    Microsoft has a dedicated Power BI Issues area specifically for reproducible product bugs. I would post the minimal PBIX there together with:

    • Power BI Desktop version 2.157.879
    • the minimal custom theme JSON
    • the colour measure
    • the exact steps above
    • screenshots of the working and failing states

     

    I would also use Power BI Desktop Help -> Report a problem and, if you have Microsoft support access, open a support case with the same minimal PBIX.

    Microsoft's support-ticket guidance specifically recommends providing a simplified reproducible example and PBIX where possible, so the file you have built is exactly the type of evidence that should help the visual team investigate this.

    As a temporary workaround, if only one uniform conditional colour is required, making that colour the first dataColors entry appears to work based on your testing. I would treat that only as a workaround, though, because it obviously does not scale if different states need different uniform colours.

    I think this is worth reporting as a line-chart conditional-formatting/theme interaction rather than a data-model issue.

    AI-assisted drafting: AI was used to help structure and phrase this response. I reviewed and validated the technical content before posting.