Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Background color for a row table/matrix

Hi,   I would like to add a background color for a row. Conditional formatting only works for columns.   I would like to add a color for the whole GLOBAL row only. Please help    
  • MariaP's avatar
    7 years ago

    Hi Anonymous ,

     

    You can create a measure and use the new 'Conditional Formating' option where you select formatting by

    'Field Value' and in this you choose the measure shown below.

    You do this for every column.

     

    COLOUR GLOBAL PROJECT ROW = 
    
    IF  (HASONEVALUE(Projects[Project])
        ,IF( FIRSTNONBLANK('Projects'[Project] , 0) = "GLOBAL"
            ,"lightgreen"
            ,"white"
        )
        ,BLANK()
    )

    Conditional Formatting- Select the measure here.Apply to every column, works for matrix and table

    SAMPLE PBIX

     

    Maria