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! Learn more

Reply
Benkov
Frequent Visitor

Individual column conditional formatting in matrix

Hello!

I have a seemingly unsolvabe task i need help with.

 

I have a matrix visual that looks like this:

Benkov_0-1650967362523.png

The values are calculated by a measure, hence the use of a matrix.

The column and row headers are from two different tables, but they are connected via additional tables.

 

I want to format the columns one by one so it highlights values that are below the individual "Target" values:

Benkov_2-1650967749965.png

Is there a way to accomplish this?

I tried looking into solutions everywhere, but they are not even close to what i need.

 

 

Any help would be appreciated.

Thank you in andvance!

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Benkov ,

 

Accroding to your screenshot, I think there should be at least [Group] columns in both tables. So I think you just need to calculate target in each group and compare [value measure] with the target in each group to get the color.

My Sample:

RicoZhou_0-1651569486009.png

RicoZhou_1-1651569496232.png

Relationship:

RicoZhou_2-1651569543287.png

Measure:

Measure = 
VAR _TRAGET = SUM('Column'[Target])
RETURN
IF([Value(Measure)]<_TRAGET,"Red")

RicoZhou_3-1651569572920.png

Result is as below.

RicoZhou_4-1651569583721.png

 

Best Regards,
Rico Zhou

 

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

3 REPLIES 3
vojtechsima
Super User
Super User

Hi, @Benkov 
You can apply conditional formatting based on value and that value is this measure:
99.80 is your  target, you can put whatever you want , same for color I put red and black, but you can put there any color.

If([YourMeasure] < 99.80, "#F00", "#000")

 

Thank you for your reply!

 

As you can see on my previous pictures, i have multiple different values in my "Target" row, and your suggestion only works with one given value.

 

 

(there was some language barrier induced misunderstanding on my side)

As far as i know i cannot use it on individual columns in my matrix, because only one measure is allowed to fill the entire matrix with values without duplicating all cloumns.

 

Benkov_1-1650972241165.png

 

 

Anonymous
Not applicable

Hi @Benkov ,

 

Accroding to your screenshot, I think there should be at least [Group] columns in both tables. So I think you just need to calculate target in each group and compare [value measure] with the target in each group to get the color.

My Sample:

RicoZhou_0-1651569486009.png

RicoZhou_1-1651569496232.png

Relationship:

RicoZhou_2-1651569543287.png

Measure:

Measure = 
VAR _TRAGET = SUM('Column'[Target])
RETURN
IF([Value(Measure)]<_TRAGET,"Red")

RicoZhou_3-1651569572920.png

Result is as below.

RicoZhou_4-1651569583721.png

 

Best Regards,
Rico Zhou

 

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

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