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
jcastr02
Post Prodigy
Post Prodigy

undefined

I have three different KPI's for each of the Priority levels.  How can I set different conditional formatting for the results in a table.  See screen shots below.  This is how I would like it to show - 

 

Minor - Show RED font if greater than 170, Green otherwise

Major - Show RED font if greater than  72, Green otherwise

Critical - Show RED font if 24 greater than 24, green otherwise

 


TAT.png

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @jcastr02 ,

Please change your condition measure like so:

Condition =
IF (
    MAX ( 'Table (3)'[Priority] ) = "Minor",
    IF ( AVERAGE ( 'Table (3)'[Value] ) > 170, 1, 0 ),
    IF (
        MAX ( 'Table (3)'[Priority] ) = "Major",
        IF ( AVERAGE ( 'Table (3)'[Value] ) > 72, 1, 0 ),
        IF (
            MAX ( 'Table (3)'[Priority] ) = "Critical",
            IF ( AVERAGE ( 'Table (3)'[Value] ) > 24, 1, 0 )
        )
    )
)

This is because of your "average" value in matrix.

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

14 REPLIES 14
Icey
Community Support
Community Support

Hi @jcastr02 ,

 

Is this problem sloved?

 

If it is sloved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.

 

If not, please let me know.

 

Best Regards
Icey

Icey
Community Support
Community Support

Hi @jcastr02 ,

You can create a measure like so:

Condition =
IF (
    MAX ( 'Table (3)'[Priority] ) = "Minor",
    IF ( MAX ( 'Table (3)'[Value] ) > 170, 1, 0 ),
    IF (
        MAX ( 'Table (3)'[Priority] ) = "Major",
        IF ( MAX ( 'Table (3)'[Value] ) > 72, 1, 0 ),
        IF (
            MAX ( 'Table (3)'[Priority] ) = "Critical",
            IF ( MAX ( 'Table (3)'[Value] ) > 24, 1, 0 )
        )
    )
)

And then, set conditional formatting.

condition2.PNG

condition.PNG condition3.PNG

Best Regards,
Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

hello @Icey 

 

I added the measure and the conditional formatting.  One thing I notice is that I don't have the number field in the conditional formatting area.  Any ideas?  See screen shot below   **I ended up using the font color vs. background color, assumming this is the same process anyways**TAT2.png

 

 

Icey
Community Support
Community Support

Hi @jcastr02 ,

Which version of your Power BI Desktop is it? Maybe you need to update it.

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@Icey hello, I've downloaded the latest version, but the colors are still showing off.  

Untitled1111.png
Here is my DAX: 

Conditional Formatting - TAT =
if (max ( 'Process Improvement Change Request'[Priority]) = "Minor",
if ( Max ( 'Process Improvement Change Request'[TAT Hours])> 170, 1, 0),
if ( max ('Process Improvement Change Request'[Priority]) = "Major",
If(max('Process Improvement Change Request'[TAT Hours]) > 72, 1, 0),
if( max( 'Process Improvement Change Request'[Priority]) = "Critical",
If (max('Process Improvement Change Request'[TAT Hours]) > 24, 1, 0))))
Icey
Community Support
Community Support

Hi @jcastr02 ,

That is so strange. If you don't mind, please share your PBIX with me.

 

Best Regards
Icey

@Icey    see if above works?

if not I can attach more screen shots

Icey
Community Support
Community Support

Hi @jcastr02 ,

I have no access to your shared file.

 

Best Regards,

Icey

Sorry it looks like it wont let me share, attached is screen shot where I show average of the turn around time, and the rules set , along with DAX.  @Icey Untitled12345.png

Icey
Community Support
Community Support

Hi @jcastr02 ,

Please change your condition measure like so:

Condition =
IF (
    MAX ( 'Table (3)'[Priority] ) = "Minor",
    IF ( AVERAGE ( 'Table (3)'[Value] ) > 170, 1, 0 ),
    IF (
        MAX ( 'Table (3)'[Priority] ) = "Major",
        IF ( AVERAGE ( 'Table (3)'[Value] ) > 72, 1, 0 ),
        IF (
            MAX ( 'Table (3)'[Priority] ) = "Critical",
            IF ( AVERAGE ( 'Table (3)'[Value] ) > 24, 1, 0 )
        )
    )
)

This is because of your "average" value in matrix.

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you @Icey  this worked!

JosefPrakljacic
Solution Sage
Solution Sage

Hey @jcastr02,

 

here you will find everything what you need for your request.

 

If this post was helpful may I ask you to mark it as solution and give it a 'thumbs up'? This will also help others

Have a nice day!

BR,
Josef
Graz - Austria

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.

Top Solution Authors