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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.