Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Matrix Visual - Conditionally Format each Row for Different Measures

Hi,

 

I have a matrix table containing multiple measures on each row:

 

04.png

 

These measures are added to the matrix via on Switch Measure:

 

05.png

 

I want to be able to conditionlly format each row individually, based on separate criteria for each metric. For example, Media Reach would look at the highest and lowest numbers. Opportunity Won would look at this based on a target value and FYTD Vs PFYTD % would have 3 target bands.

 

Is there a way to set up a conditional formatting measure that would list each measure and the way to format it for each? Or woud there be an alternative method?

 

I've created a parameter table to group my metrics, so they appear accessible in this table. Otherwise I would have added each metric to the matrix individually, but I'd lose the ability to show Business Unit and Division this way. 

 

Thanks,

Mark

1 ACCEPTED SOLUTION
danextian
Super User
Super User

Hi @Anonymous 

This would be quite complex to achieve. For instance, if you're examining the highest and lowest numbers, you may need to rank the months for that specific measure row and individually assign a color to each rank. Additionally, you would need to create another set of conditions based on whether the percentage hits which target bands.

 

SWITCH (
    SELECTEDVALUE ( 'table'[order] ),
    0, SWITCH ( [separate rank measure], 1, "green", 2, "red", 3, "blue" ),
    1,
        SWITCH (
            TRUE (),
            [FYTD % Difference] >= 0.90, "green",
            [FYTD % Difference] >= 0.70, "yellow",
            "red"
        )
)

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

1 REPLY 1
danextian
Super User
Super User

Hi @Anonymous 

This would be quite complex to achieve. For instance, if you're examining the highest and lowest numbers, you may need to rank the months for that specific measure row and individually assign a color to each rank. Additionally, you would need to create another set of conditions based on whether the percentage hits which target bands.

 

SWITCH (
    SELECTEDVALUE ( 'table'[order] ),
    0, SWITCH ( [separate rank measure], 1, "green", 2, "red", 3, "blue" ),
    1,
        SWITCH (
            TRUE (),
            [FYTD % Difference] >= 0.90, "green",
            [FYTD % Difference] >= 0.70, "yellow",
            "red"
        )
)

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.