Forum Discussion

jonnyA's avatar
jonnyA
Icon for Responsive Resident rankResponsive Resident
5 years ago

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!

 

 

 

26 Replies

  • jonnyA , Create a color measure and use that in conditional formatting using filed value option

     

    Switch(True(),

    [Provider %]> [Group %] *1.1 , "Green" ,
    [Provider %]< [Group %] *.9 , "Red" ,
    "Blue"

    )

     

    How to do conditional formatting by measure and apply it on pie?: https://youtu.be/RqBb5eBf_I4

    • jonnyA's avatar
      jonnyA
      Icon for Responsive Resident rankResponsive Resident
      How do i fix this measure witht the data i have?  I couldnt get the formula you sent me to work.

       

       
       

       


       

      • aj1973's avatar
        aj1973
        Icon for Community Champion rankCommunity Champion

        [Provider %] is not a measure in your model you need to create it

    • jonnyA's avatar
      jonnyA
      Icon for Responsive Resident rankResponsive Resident

      When I try this formula all the data that was in the matrix goes away when adding the formula you said to try.

      Color 3 = Switch(True(),

      [Provider %]> [Group Average (Ignore Degree)] *1.1 , "Green" ,
      [Provider %]< [Group Average (Ignore Degree)] *.9 , "Red" ,
      "Blue"

      )
       

       

       

  • aj1973's avatar
    aj1973
    Icon for Community Champion rankCommunity 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

    here is an example

     

     

  • jonnyA's avatar
    jonnyA
    Icon for Responsive Resident rankResponsive 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?

     

     

     
     
    • aj1973's avatar
      aj1973
      Icon for Community Champion rankCommunity 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

  • jonnyA's avatar
    jonnyA
    Icon for Responsive Resident rankResponsive Resident

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

     

    • aj1973's avatar
      aj1973
      Icon for Community Champion rankCommunity 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?

      • jonnyA's avatar
        jonnyA
        Icon for Responsive Resident rankResponsive Resident

        What exactly do you want me to show you?