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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
jcastr02
Post Prodigy
Post Prodigy

Conditional Formatting - matrix row

Trying to set up a cond formatting to the highest number in each row, to be background color of dark grey.  The values are not coming from any measure.  I am doing % of row total of responses.  See pic below.  

 

Attribute.png

7 REPLIES 7
v-lionel-msft
Community Support
Community Support

Hi @jcastr02 ,

Create a measure like this:

 

Max_grey = 
VAR x = 
CALCULATE(
    MAX(Sales[Sale 2013]),
    ALLEXCEPT(
        Sales,
        Sales[Brand]
    )
)
RETURN
IF(
    MAX(Sales[Sale 2013]) = x,
    "grey",
    "white"
)

 

Then, do like this:

(The matrix in the picture is the effect I have achieved, I just repeat the operation again.)

ff11.PNGff12.PNG

 

Best regards,
Lionel Chen

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

 

 

@v-lionel-msft seems it's only shading the first column.  

 

Attached is the file - see 30 day feedback tab

 

https://1drv.ms/u/s!Ava_12t7CNJtkCGALXOtGpymk1pF 

rajulshah
Resident Rockstar
Resident Rockstar

Hello @jcastr02,

Can you provide sample data or sample power bi file? Because I am able to achieve it in my file.

Hello @rajulshah

 

 https://1drv.ms/u/s!Ava_12t7CNJtkCGALXOtGpymk1pF  

 

Please see link.  I appreciate your help!

@rajulshah 

 

See 30 Day Feedback Tab, thanks.

@jcastr02, Well, I just disabled and then enabled conditional formatting option for the field and it worked. See below:
%RTcf.png

 

Please try once again and let me know if it worked.

@rajulshah    I am trying to get only a grey background color  for the highest (or max) number in each ROW.  It seems I may have to do a conditional format based on a measure, but can't figure out the DAX for it.  

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

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
Top Kudoed Authors