Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
1 year ago
Solved

Adjust Formatting for different Row Levels

Hi togeter, since I'm working with confidential data, I rebuild a dummy matrix to show my problem - so ignore the ugliness please. I have the following matrix with two row levels (department / ...
  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi Anonymous,

    Since you are looking for a creative workaround, here are few ideas that can help you create the desired colour variation where top-level rows (like "Sales" or "Procurement") have a different colour background.

    * You can use a Custom Column for styling. First add a column to the data model that identifies the hierarchy level "RowLevelType = IF(ISBLANK([Subdepartment]), "Department", "Subdepartment")". Then use this field in a conditional formatting rule for background color (only partially effective, it won’t change the row header's background).

     

    * You can also overlay with a Shape or Rectangle (in report design). If the matrix is static, consider overlaying a dark blue rectangle behind the department row using layers in Power BI canvas to simulate the background.

    This is a manual solution, not dynamic.

    * You can also use a Third-Party Custom Matrix Visual. Some custom visuals available on AppSource allow more granular styling control for different row levels.

    Example: KPI Matrix, Zebra BI Table, etc.

     

    If I misunderstand your needs or you still have problems on it, please feel free to let us know.  

    Best Regards,
    Hammad.
    Community Support Team