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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
DaxAssistance
Frequent Visitor

How to highlight every new high max value

Hello Everyone,

 

I have a matrix table that I would like to highlight every new instance of a new max on each row.(Going from left to Right)

Please see below:

 

Table Name - Customer_Weight

Fields : Customer Name, Date, Weights

 

Matrix table example

                        Jan    Feb    Mar   April

Customer 1     4          2        8        1

Customer 2      5         8        2       10

Customer 3       6        5         4        3

 

I want the result of the conditional format to show the following highlighted red

                        Jan    Feb    Mar   April

Customer 1              2              1

Customer 2             8        2       10

Customer 3              5         4        3

 

Any help would be great 

 

thanks again !!!

 

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your datamodel looks like, but I tried to create a sample pbix file like below.

Please check the below picture and the attached pbix file.

I hope the below can provide some ideas on how to create a solution for your datamodel.

 

Jihwan_Kim_0-1680027086787.png

 

Jihwan_Kim_1-1680027533638.png

 

Weight measure: = 
SUM( Customer_weight[Weights] )

 

 

Color condition measure: =
VAR _maxvalueuptocurrentmonth =
    CALCULATE (
        MAX ( Customer_weight[Weights] ),
        WINDOW (
            1,
            ABS,
            0,
            REL,
            ALL ( 'Calendar'[Year-Month sort], 'Calendar'[Year-Month] ),
            ORDERBY ( 'Calendar'[Year-Month sort], ASC )
        )
    )
RETURN
    IF ( [Weight measure:] = _maxvalueuptocurrentmonth, "Red" )

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

2 REPLIES 2
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your datamodel looks like, but I tried to create a sample pbix file like below.

Please check the below picture and the attached pbix file.

I hope the below can provide some ideas on how to create a solution for your datamodel.

 

Jihwan_Kim_0-1680027086787.png

 

Jihwan_Kim_1-1680027533638.png

 

Weight measure: = 
SUM( Customer_weight[Weights] )

 

 

Color condition measure: =
VAR _maxvalueuptocurrentmonth =
    CALCULATE (
        MAX ( Customer_weight[Weights] ),
        WINDOW (
            1,
            ABS,
            0,
            REL,
            ALL ( 'Calendar'[Year-Month sort], 'Calendar'[Year-Month] ),
            ORDERBY ( 'Calendar'[Year-Month sort], ASC )
        )
    )
RETURN
    IF ( [Weight measure:] = _maxvalueuptocurrentmonth, "Red" )

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

You're Amazing thank you so Much !!!!!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

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.