Forum Discussion

Anusha__v's avatar
Anusha__v
Helper II
6 months ago
Solved

Paginated Report Line Chart – Series Color Expression Not Applying Correctly Per Legend

Hi All, I am working on a Power BI Paginated Report and using a Line Chart with Product Name as the Legend. I have configured a Color expression for the series, for example: If ProductName = 'A'...
  • v-hashadapu's avatar
    v-hashadapu
    6 months ago

    Hi Anusha__v , Thank you for reaching out to the Microsoft Community Forum.

     

    This is a known limitation. In SSRS / Power BI Paginated Reports, when a line chart uses a dynamic legend (series group), colours are assigned to series instances at render time. Those instances are created and reused based on internal rendering order, not permanently bound to a specific legend value like ProductName. As a result, even correct colour expressions can appear to move between products when the data shape or render order changes. Sorting the dataset, series group or returning the colour from the dataset may not fix this, because the renderer does not maintain a stable key-to-color mapping.

     

    If you need deterministic colours, the only reliable solution is to avoid a dynamic series group. Define one static series per product (or pivot the data so each product is its own value column) and set the colour directly on each series. This forces a one-to-one relationship between product and series and guarantees consistent legend colours. With a fully dynamic legend, there is currently no supported way in paginated reports to lock colours to specific legend values.