Forum Discussion

Mniknejad's avatar
Mniknejad
Frequent Visitor
7 months ago
Solved

conditional Formatting in Calculation Item

Hi, I’m looking for help with formatting in a Power BI matrix using calculation groups. Report design Matrix has one visible measure: KPI_Value_Visible_CAD KPI rows come from a KPI dimension (...
  • v-pnaroju-msft's avatar
    7 months ago

    Thankyou, MFelixburakkaragoz and cengizhanarslan for your responses.

    Hi Mniknejad,

    Thank you for the update.

    Based on my understanding, when multiple calculation groups are placed on Matrix columns in Power BI, the calculation item context is not preserved during visual rendering. Conditional formatting is evaluated after the DAX query completes, by which time the identity of specific calculation items is no longer reliably available. Consequently, visual level conditional formatting cannot consistently determine which calculation item produced a given value, and therefore may be unreliable in this scenario.

    Please consider the following workarounds, which may help resolve the issue:

    1. Move scenario logic out of calculation groups on columns. Instead, use explicit measures or a Scenario dimension. Limit to at most one calculation group affecting columns. This preserves formatting context and ensures reliable behavior.
    2. Split the matrix into separate visuals. One for base values and another for variance values that require conditional formatting. This approach avoids loss of calculation group context at render time.

    If you require calc-item-scoped conditional formatting across multiple calculation groups, please raise an idea on the Ideas forum using the link:Fabric Ideas - Microsoft Fabric Community

    We hope this information helps resolve the issue. If you have any further queries, please feel free to contact the Microsoft Fabric community.

    Thank you.