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
Shamatix
Post Partisan
Post Partisan

Help with Measure - MAX IF in same measure?

Hi there,

 

So I have made a fairly simply measure and it works to a degree.

The measure goes as follows:

CheckExpected = IF(SUM(Merged[Value]) > [Forventet], 1, 0)
 
So I have a Matrix.
What I want to achieve is for the second column to light up red with conditional formatting as one of the "nested" numbers is higher than the third column
227 is larger than 150 so I want the header row (227) to light up red as well.
Can someone help me achieve this 🙂
 
PBIDesktop_6cugsH7keQ.png
2 REPLIES 2
Fowmy
Super User
Super User

@Shamatix 

Conditional formatting for column headers is not available yet.  You can use the title text, font color or title background color to highlight.
In my example, I made the title font color red if any value in VALUE1 column is found to be more than VALUE2. 
Measure to apply for Font of the Title under :

Flag = 
IF(
    NOT(
        ISEMPTY(
            FILTER(
                Table4,
                Table4[Value2] > Table4[Value1]
            )
        )
    ),
    "RED"
)

Conditional Formatting

Fowmy_0-1626723713381.png

Result

Fowmy_1-1626723727477.png

 

 







Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

I am not talking about column headers, but all the values.

Hopefully these pictures makes it a bit more clear what I want.

PBIDesktop_S8qTOkaK70.pngPBIDesktop_hvyANRaEYh.png

 

I want the 227 "top level row" to be red as one of its "under values" exceeds the other number.

So eventho 227 is less than 300 I want the 227 to be red as its "nested value" 227 is higher than 150.


Hope that made more sense

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

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!

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