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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Matrix value columns Conditional Formatting

Hi All,

 

I am looking for some help with conditional formatting; i have created a training matrix that requires the status column to be orange if the training completed date has been completed and the re-audit date is blank, and if both the training completed date and Re-audit date is populated then the status should turn green.

 

This is how my columns look in the matrix table:

ArturDj_0-1626770121412.png

 

Thank you

 

1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

try the following measure for formatting.

CF =
IF (
    MIN ( 'Training Records'[DateTrainingCompleted] ) <> BLANK ()
        && MIN ( 'Audit Record'[Re Audit Date] ) = BLANK (),
    "#E66C37",
    IF (
        MIN ( 'Training Records'[DateTrainingCompleted] ) <> BLANK ()
            && MIN ( 'Audit Record'[Re Audit Date] ) <> BLANK (),
        "#00FF00",
        BLANK ()
    )
)

 

CF_TrainStatus.pngCF_TrainStatus2.png

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


View solution in original post

4 REPLIES 4

Hi @Anonymous ,

 

can you provide an example PBIX?

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


Anonymous
Not applicable

Hi @mwegener,

 

Please find an example pbix file: https://1drv.ms/u/s!AqpscUO4vhcRkgmpWKu5Wt-ET72b?e=zVyx33

 

Thank you

Hi @Anonymous ,

 

try the following measure for formatting.

CF =
IF (
    MIN ( 'Training Records'[DateTrainingCompleted] ) <> BLANK ()
        && MIN ( 'Audit Record'[Re Audit Date] ) = BLANK (),
    "#E66C37",
    IF (
        MIN ( 'Training Records'[DateTrainingCompleted] ) <> BLANK ()
            && MIN ( 'Audit Record'[Re Audit Date] ) <> BLANK (),
        "#00FF00",
        BLANK ()
    )
)

 

CF_TrainStatus.pngCF_TrainStatus2.png

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


Anonymous
Not applicable

Hi @mwegener ,

 

That worked perfectly! 

 

Thank you

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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