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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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