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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
AbbasG
Memorable Member
Memorable Member

Background color in matrix

Hello All,

I have created a custom column in a matrix for the order status.

I need to add a green background color for the ones that are ready to ship.

AbbasG_0-1648709559990.png

 

Any help will be appreciated 🙂

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@AbbasG , Create a color measureand use that is conditional formatting using field value option n

 

Switch(max(Table[Order Status]) ,

"Ready to Ship", "Green",

"Not Ready", "Yellow",

"Red"

)

 

 

In matrix you can not use conditional formatting on row/column (pivot) . You can only use on values

 

How to do conditional formatting by measure and apply it on pie? : https://youtu.be/RqBb5eBf_I4

View solution in original post

3 REPLIES 3
ribisht17
Super User
Super User

Hi Abbas,

Kindly see if it helps

1. Write a DAX expression 

Category Indicator = IF(orders_[Category]="Furniture",1,0)
 
2. Under Format > Conditional formatting >>Then you can pick the color (green in your case)

ribisht17_0-1648711045736.png

 

 

ribisht17_1-1648711399057.png

 

 

Regards,

Ritesh

If this answer helps then please mark it so that it can help others as well

 

amitchandak
Super User
Super User

@AbbasG , Create a color measureand use that is conditional formatting using field value option n

 

Switch(max(Table[Order Status]) ,

"Ready to Ship", "Green",

"Not Ready", "Yellow",

"Red"

)

 

 

In matrix you can not use conditional formatting on row/column (pivot) . You can only use on values

 

How to do conditional formatting by measure and apply it on pie? : https://youtu.be/RqBb5eBf_I4

@amitchandak How can I use a different color code here? I tried using hex code but did not work.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.