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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
jonnyA
Responsive Resident
Responsive Resident

Using Conditional Formatting to show 10% above and 10% below Group%

Using Conditional Formatting how could I highlight the "Provider %" which is 10% above the "Group %"

 

Using Conditional Formatting how could I highlight the "Provider %" which is 10% below the "Group %"

 

Thank you in advance!

 

 

jonnyA_0-1625756225862.png

 

26 REPLIES 26
jonnyA
Responsive Resident
Responsive Resident

But the Group % is not the same for all CPT codes.  See what I mean?  See screenshot ...

jonnyA_0-1625767306222.png

 

aj1973
Community Champion
Community Champion

Yes I know what you mean, you want it to be dynamic...I just wanted to test the measure color how it works out.

Can you show me please?

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

jonnyA
Responsive Resident
Responsive Resident

What exactly do you want me to show you?

aj1973
Community Champion
Community Champion

the column Color 2 when you add it to the visual.

 

Can you share your file? in private if you want

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

jonnyA
Responsive Resident
Responsive Resident

I'm not sure what you mean?  Color 2 is added to the visual.

 

jonnyA_0-1625771918360.png

 

aj1973
Community Champion
Community Champion

what is the measure behind this column?

aj1973_0-1625772090495.png

use one of these measure so I can see the outcome

aj1973_1-1625772168304.png

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

jonnyA
Responsive Resident
Responsive Resident

jonnyA_3-1625831519355.pngjonnyA_4-1625831535549.png

This is where I am at right now witht the color 2 measure you gave me.

aj1973
Community Champion
Community Champion

Use this please and show me

Color 2 = IF ( [Provider %] > 0.01837 , "Green" , IF ( [Provider %] < 0.01837 , "Red"))

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

jonnyA
Responsive Resident
Responsive Resident

The data doesnt seem to like that formula ...

jonnyA_0-1625833253601.png

 

aj1973
Community Champion
Community Champion

Something is not correct!!

Can you make a Sample of your file and share it with us?

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

jonnyA
Responsive Resident
Responsive Resident

@aj1973 ,

Hello!

 

Its been a little while since I lasted visited this report.  i am still stuck on trying to get to work.

 

I think one of the problems I am having is that in your file your "Group %" has the E.  My "Group %" is a calculated measure.  

Group % = Sumx(Values('Test File_Charge_Dataset'[Provider_Degree]),'Test File_Charge_Dataset'[Group Average (Ignore Degree)]).
 
Group Average (Ignore Degree) = IF (
ISFILTERED (Test File_Charge_Dataset[Provider_Degree]), CALCULATE([Group Average], REMOVEFILTERS(Test File_Charge_Dataset[Provider_Degree])), [Group Average])
 
In my matrix "Group %" is shown as "Percent of Grand Total"
aj1973
Community Champion
Community Champion

Hi @jonnyA 

I don't get your point!!! In this thread we were talking about Colors and it seems like you are talking about something completly different!

Maybe you should open a new thread and yuo should provide a sample of your file.

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

jonnyA
Responsive Resident
Responsive Resident

@aj1973 ,

Sorry for the confusion.  I am still trying to Highlight rows where the Provider % is 10% above or below the Group % I have a sample that you sent me last month, but I cannot attach it to the Power BI community.  Could you provide me your email and I'll send you the test file?

aj1973
Community Champion
Community Champion

jerbi73@gmail.com

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

jonnyA
Responsive Resident
Responsive Resident

Yes, give me a few minutes!  Thank you

jonnyA
Responsive Resident
Responsive Resident

Color 2 = IF ( [Provider %] > 1.1 * [Group Average (Ignore Degree)] , "Green" , IF ( [Provider %] < 1.1 * [Group Average (Ignore Degree)] , "Red"))
 
Provider % = COUNT( 'Table_Charge_Dataset'[CPT_Code])
 
Group Average (Ignore Degree) = IF (
ISFILTERED (Table_Charge_Dataset[Provider_Degree]), CALCULATE([Group Average], REMOVEFILTERS(Table_Charge_Dataset[Provider_Degree])), [Group Average])
 
 
jonnyA
Responsive Resident
Responsive Resident

Your previous comment is 3 formula's correct?  I tried them, but cannot get to work.

jonnyA
Responsive Resident
Responsive Resident

I created the following formulas ...

Provider % = COUNT( 'MEDONE_Charge_Dataset'[CPT_Code])
 
Color 2 = IF ( [Provider %] > 1.1 * [Group Average (Ignore Degree)] , "Green" , IF ( [Provider %] < 1.1 * [Group Average (Ignore Degree)] , "Red"))
 
But everything came back "Red", but i dont know why?
jonnyA_0-1625764537835.pngjonnyA_1-1625764721961.png

 

 

 
 
aj1973
Community Champion
Community Champion

I have a doubt on the Group % measure (the unit)!!

Since Group % is constant and equal 0.0167 can you replace in this formula

Color 2 = IF ( [Provider %] > 1.1 * 0.0167 , "Green" , IF ( [Provider %] < 1.1 * 0.0167 , "Red")) or

Color 2 = IF ( [Provider %] > 0.01837 , "Green" , IF ( [Provider %] < 0.01837 , "Red"))

 

let me know

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

aj1973
Community Champion
Community Champion

Hi @jonnyA 

You need to add a measure for color like

Color = IF ( Provider % > 1.1 * Group % , "Green" , IF ( Provider % < 1.1 * Group % , "Red"))

then use this measure to apply into

aj1973_0-1625757488628.png

here is an example

aj1973_1-1625757544986.png

 

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.