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

Conditional Formatting based on Average Value of Measure

Hi,

I hope you can help me out with this..

 

I created a bar chart with for each month the percentage assigend value versus turnover.2018-12-19_16-11-20.png

But I would like to color the bars if the % is higher than the average %. The bars are now colored if the % > 3%.

The bars are based on the following measure:

Assigned Value versus Turnover = DIVIDE([Total Assigned Value];SUM('Claims&Billing'[Turnover Actuals]))
So basically a division of the measures.
 
Do you know how to do this?
 
Thx! 

 

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

hi, @Anonymous

Is " 3% " the overall average value?

If so, You could try this way:

Add a new average Value measure by ALLSELECTED/ ALL like

NOTE: using ALLSELECTED or ALL  depends on whether you will filter date on visual.

 

NEW Assigned Value versus Turnover 1 =
DIVIDE (
    [Total Assigned Value],
    CALCULATE (
        SUM ( 'Claims&Billing'[Turnover Actuals] ),
        ALLSELECTED ( 'Date'[Date] )
    )
)

OR

NEW Assigned Value versus Turnover 1 =
DIVIDE (
    [Total Assigned Value],
    CALCULATE (
        SUM ( 'Claims&Billing'[Turnover Actuals] ),
        ALL ( 'Date'[Date] )
    )
)

Step2:

Create a conditional measure like 

conditional = IF([Assigned Value versus Turnover]>[NEW Assigned Value versus Turnover 1],1,2)

Step3:

Select bar chart, then click Format->Date colors->Advanced controls

10.JPG

Result:

In my case, the average is 4.5

12.JPG

Best Regards,

Lin

 

Community Support Team _ Lin
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

5 REPLIES 5
v-lili6-msft
Community Support
Community Support

hi, @Anonymous

Is " 3% " the overall average value?

If so, You could try this way:

Add a new average Value measure by ALLSELECTED/ ALL like

NOTE: using ALLSELECTED or ALL  depends on whether you will filter date on visual.

 

NEW Assigned Value versus Turnover 1 =
DIVIDE (
    [Total Assigned Value],
    CALCULATE (
        SUM ( 'Claims&Billing'[Turnover Actuals] ),
        ALLSELECTED ( 'Date'[Date] )
    )
)

OR

NEW Assigned Value versus Turnover 1 =
DIVIDE (
    [Total Assigned Value],
    CALCULATE (
        SUM ( 'Claims&Billing'[Turnover Actuals] ),
        ALL ( 'Date'[Date] )
    )
)

Step2:

Create a conditional measure like 

conditional = IF([Assigned Value versus Turnover]>[NEW Assigned Value versus Turnover 1],1,2)

Step3:

Select bar chart, then click Format->Date colors->Advanced controls

10.JPG

Result:

In my case, the average is 4.5

12.JPG

Best Regards,

Lin

 

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

How would I achieve this if I just want to conditionally format the totals? 

Hi!

 

The option "Select bar chart, then click Format->Date colors->Advanced controls" is missing in mine. Do you have any idea why?

 

Thanks,

Soraia

hi, @SoraiaT

Please update power bi desktop to the latest version.

In November 2018, this is moved to  Date colors from field.

 

With this upgrade, you’ll notice the color saturation bucket is no longer in the field well. Instead to format, you’ll go to the Data colors card in the formatting pane. Here you can format with the color pickers as normal or select the Advanced controls option to launch the conditional formatting dialog.

https://powerbi.microsoft.com/en-us/blog/power-bi-desktop-november-2018-feature-summary/

 

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

@v-lili6-msft

 

Thanks for the reply! it works!

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.