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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors