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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Nidhi09031992
New Member

Conditional formatting on matrix visual

 Screenshot 2025-11-12 at 7.37.28 PM.png

This is the data i have suppose i creating a matrix now , rows : Group, Metric  .... Column : Account ,,,,values :kpi value , this table is created in bi now issue is i am not able to do conditional formatting on any metric level coz all values coming from kpi value column frombackend . I tried it with simple matrix with backend tableand one with customized table in BI . 

1 REPLY 1
GeraldGEmerick
Impactful Individual
Impactful Individual

@Nidhi09031992 A bit hard to decipher the issue you are having. You can create a measure that returns a text color code like "#FF00FF" for example that is based on whatever logic you desire within the DAX code. For example:

Color =
VAR _Metric = SELECTEDVALUE( 'Table'[Metric] )
VAR _Value = SELECTEDVALUE( 'Table'[Value] )
VAR _Return
  SWITCH( TRUE(),
    AND( _Metric = "Gap", _Value > 1000 ), "#FF0000",
    AND( _Metric = "Gap", _Value < 1000 ), "#00FF00",
    AND( _Metric = "Total order", _Value > 3000 ), "00FF00",
    "FFFFFF"
  )
RETURN _Return

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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