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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
saudansari
Helper II
Helper II

Conditional Formatting for specific column in Matrix Visual

Hi 

I am using Conditional formatting using the Dax = 
NumericAHT =
AVERAGE(support__cw_ops_manage_case_merge_temp[FormattedAHT])

however, as you can see below in the image the matrix visual has a column  hours type created by DAX = 

Business Hours =
IF(
    AND(
        [Time] >= TIME(8, 0, 0),
        [Time] < TIME(18, 0, 0)
    ),
    "Business Hours (8 AM - 6 PM)",
    "Off-Hours (7 PM - 7 AM)"
)

I want to use the conditional formatting for only the business hours column under Column AHT

saudansari_0-1703170904724.png


@Ahmedx @lbendlin @Ritaf1983 @parry2k @amitchandak @Idrissshatila @Ashish_Mathur  Request you to please help

3 REPLIES 3
Fowmy
Super User
Super User

@saudansari 

Create a measure to use for your CF as follows as per this example:

CF = 
IF(
    SELECTEDVALUE( 'Date'[Year] ) = 2018 && SELECTEDVALUE( 'Date'[Month Number] ) = 1 , 
    [Total Quantity]
)

Fowmy_1-1703188180915.png

 

Fowmy_0-1703188159469.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


The column is hours type and where I get two columns one business hours and the other off-hours, however, the value is one AHT, Chat to Close when I use conditional formatting it is applying for AHT in both columns together

saudansari_0-1703234021640.png

 

saudansari
Helper II
Helper II

To add the values in the matrix using the DAX - 

AVG AHT = FORMAT(AVERAGE(support__cw_ops_manage_case_merge_temp[FormattedAHT]), "hh:mm:ss")
Basically formatted them in hh:mm:ss 

@Ahmedx @lbendlin @Ritaf1983 @parry2k @amitchandak @Idrissshatila @Ashish_Mathur

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.