Skip to main content

Power BI

Needs Votes

Conditional formatting to set background color to the column values in Matrix visual.

Vote (21) Share
Vamshi Krishna's profile image

Vamshi Krishna on 14 Nov 2018 04:00:04

Conditional formatting to set background color to the column values in Matrix visual.

Comments (4)
Vamshi Krishna's profile image Profile Picture

David Clowes on 19 Oct 2021 07:33:32

RE: Conditional formatting to set background color to the column values in Matrix visual.

Yep - I really need this, because the matrix is the only visual that allows grouping of rows - and in my case I have a row with summary metrics and commentary - but the commentary has several view points, against one metric. I need to be able to conditionally format the grouped rows, or (ideally in my case) place a status icon next to a row header.

Vamshi Krishna's profile image Profile Picture

on 30 Oct 2020 21:08:28

RE: Conditional formatting to set background color to the column values in Matrix visual.

Conditional formatting to set background color to the column values in Matrix visual

Vamshi Krishna's profile image Profile Picture

Evester Robison on 06 Jul 2020 00:09:39

RE: Conditional formatting to set background color to the column values in Matrix visual.

Trying to change background color for work hours based on CategoryDesc field. This DAX formula is not working. I have tried Color Scale, Rules and Field Values nothing is working. This should not be this difficult to change.

Color = IF('dim ProjectCategory'[CategoryDesc]="Holiday", "1", IF('dim ProjectCategory'[CategoryDesc]="Vacation","2", IF('dim ProjectCategory'[CategoryDesc]="Labor - Salary","3",IF('dim ProjectCategory'[CategoryDesc]="Labor - Hourly", "4",IF('dim ProjectCategory'[CategoryDesc]= "Labor - Daily","5","")))))


Name ProjectCategoryGroup Category CategoryDesc WorkHours
Jane Doe LABOR HOLIDAY-L Holiday 8
Jane Doe LABOR HOLIDAY-L Holiday 8
Jane Doe LABOR HOLIDAY-L Holiday 24
Jane Doe LABOR LABOR-DLY Labor - Daily 11
Jane Doe LABOR LABOR-DLY Labor - Daily 12
Jane Doe LABOR LABOR-HRLY Labor - Hourly 160
JDoe LABOR LABOR-SAL Labor - Salary 16

Jane Doe LABOR VACATION Vacation 16

Vamshi Krishna's profile image Profile Picture

Power BI Ideas Admin on 05 Jul 2020 23:56:28

RE: Conditional formatting to set background color to the column values in Matrix visual.

It would be nice in situations where you have banded rows but need to use conditional formatting to set the font color equal to the background color if a certain value shows up.

Merged Idea (1)