Forum Discussion

AlissaStuart's avatar
AlissaStuart
Regular Visitor
9 months ago
Solved

Edit Table with Calculation Items

Hello Everyone,  I have a table where all of the rows are Calulation Items. So Job Stars is One Calc.item, Job Starrd YouthHSN in onther Calc. Item, etc.  Each Caculated Item is equal to a unique me...
  • Anonymous's avatar
    Anonymous
    9 months ago

    Hi AlissaStuart ,

    Thank you for reaching out to Microsoft fabric community forum.

     

    Since your rows are generated from a calculation group, the Matrix can't directly apply color to the row headers. However, you can still achieve clear row banding by coloring the values according to the calculation item in each row. To do this, create a simple color measure that checks the selected calc item (using SELECTEDVALUE('Calc Group'[Name])) and returns a hex color with a SWITCH statement, assigning each item or subgroup a specific color. To handle totals, use IF(NOT ISINSCOPE('Calc Group'[Name]), BLANK(), <color>). Then, in the Matrix, use Conditional formatting - Background color - Field value and select this color measure for the Values/Totals. This will shade each data row by calc item, giving you the subgroup highlights you want without changing your calc group setup. If you have many items, consider adding a [Subgroup] column to the calc group table and use it in your SWITCH to keep color assignments organized.

    Create calculation groups in Power BI - Power BI | Microsoft Learn

     

    Hope this helps. Please reach out for further assistance.

    Thank you.