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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
arolon2
Frequent Visitor

Matrix visual coloring by column

Hello,

 

I have a current matrix visual that I'm trying to make easier on the eyes. The crux of the issue is that I am looking to either apply a background color to alternateing months (in the pic below July and September 2021). In lue if that apply the background color to just the Lag_0 values of each month.

 

What I have:

Matrix Example.png

What I'm looking for:

Matrix solution 1.png

Or:

Matrix solution 2.png

1 ACCEPTED SOLUTION
v-xulin-mstf
Community Support
Community Support

Hi @arolon2,

 

Please try conditional formatting as:

vxulinmstf_0-1628500769439.png

If you still have some question, please don't hesitate to let me known.‌‌

 

Best Regards,

Link

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!

View solution in original post

3 REPLIES 3
v-xulin-mstf
Community Support
Community Support

Hi @arolon2,

 

Please try conditional formatting as:

vxulinmstf_0-1628500769439.png

If you still have some question, please don't hesitate to let me known.‌‌

 

Best Regards,

Link

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!

parry2k
Super User
Super User

@arolon2 you can add a new measure for color and apply it as a background color for your value:

 

Background Color = IF ( SELECTEDVALUE ( YourTable[Lag Coloumn] ) = "Lag_0", "Yellow" )

 

instead of yellow, you can also use hex color code.

 

Follow us on LinkedIn

 

Check my latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

 

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

So I created the following measure 

Background Color = IF(
    SELECTEDVALUE(Combined_Lag[Lag]) = "Lag_0", "#82e0ff"
)

 

I tried to apply it to the background color below but it did not reflect on the visual.

 

arolon2_0-1628099230059.png

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.