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
notintoexcel11
Frequent Visitor

Format based on column values

Hi All,

PFA the screenshot of my matrix table. I wish to create a separate column highlighting those values for whom the value in "dispatch efficiency %" is below 50% as something (like a symbol or colour or others) , but not in the same column. How can I achieve this?

notintoexcel11_1-1715317311871.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @notintoexcel11 ,
Thanks for @Ashish_Mathur  and @VahidDM  reply.
The following additions were made:
Sample data:

vheqmsft_0-1717392081896.png


Create a measure

Measure = 
VAR a = 
CALCULATE(
    MAX('Table'[Column2]),
    FILTER(
        'Table',
        'Table'[Column1] = "P2"
    )
)
RETURN
IF(
    a <> BLANK(),
    IF(
        a < 0.5,
        "Red",
        "Green"
    ),
    "Black"
)

Apply the measure to the font color

vheqmsft_1-1717392134121.png

vheqmsft_2-1717392148086.png

Final output

vheqmsft_3-1717392171884.png

Best regards,
Albert He

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

 

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @notintoexcel11 ,
Thanks for @Ashish_Mathur  and @VahidDM  reply.
The following additions were made:
Sample data:

vheqmsft_0-1717392081896.png


Create a measure

Measure = 
VAR a = 
CALCULATE(
    MAX('Table'[Column2]),
    FILTER(
        'Table',
        'Table'[Column1] = "P2"
    )
)
RETURN
IF(
    a <> BLANK(),
    IF(
        a < 0.5,
        "Red",
        "Green"
    ),
    "Black"
)

Apply the measure to the font color

vheqmsft_1-1717392134121.png

vheqmsft_2-1717392148086.png

Final output

vheqmsft_3-1717392171884.png

Best regards,
Albert He

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

 

VahidDM
Super User
Super User

Hi @notintoexcel11 

 

You need to create a Measure to check the "dispatch efficiency %" value and for example return 1 when it  is below 50% and 0 when it is more than that.

Then add that measure to the matrix as a new column.

Set the conditional formatting based on the value of the measure to add icon and set that condition to only shows icon not value.

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.

Appreciate your Kudos!! 

LinkedIn | Twitter | Blog | YouTube 

It says unable to load data for this visual.

notintoexcel11_0-1715324536822.png

 

Hi,

Remove the "" from 50%.  Change 50% to 0.5


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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.

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

60 days of Data Days Carousel

Data Days 2026

Join 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.

Top Solution Authors