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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
SC30GSWNBA
Frequent Visitor

Color Items Above Average Line

Hello All,

 

I need some help with respect to a Scatter Plot. I have got a dataset as follows -

 

DateEmployeeSalesOverhead
06/21/2024E12525
06/21/2024E22525
06/21/2024E31020
06/22/2024E12525
06/22/2024E22525
06/22/2024E32010
06/23/2024E12030
06/23/2024E23040
06/23/2024E32050

 

I have created a Baseline Percentage Measure as follows - 

 

Baseline_Percentage = SUM('Baseline Data'[Sales])/(SUM('Baseline Data'[Sales])+SUm('Baseline Data'[Overhead]))
 
Based on Baseline_Percentage I have been able to create a scatter plot as follows -
 
SC30GSWNBA_0-1719145373756.png

Baseline percentage on Y axis and Sum of Sales on X axis.

 

I now need to show the items above Baseline Average i.e 44.4% across three days as separate color and items below baseline average as separate color but not able to do so. Could you please help me solve the issue ? Also I need to ensure that the chart works perfectly fine based on date slicer selection shown below -

 

SC30GSWNBA_1-1719145597817.png

 

 

 
2 REPLIES 2
tharunkumarRTK
Super User
Super User

@SC30GSWNBA 
You can conditionally format the marker colors in scatter plot

Screenshot 2024-06-23 at 6.43.52 PM.png

 

Conditional formatting window:

Screenshot 2024-06-23 at 6.42.56 PM.png

 

if you keep the thresholds dyanmic then you can create a sonditional formatting measure and apply the same.

 

If I understnad correctly then I think your baseline_percentage measure is incorrect. You can use this pattern

 

Baseline_Percentage = 
Var __Sales = sum('Baseline_data'[Sales])
Var __TotalSales = calculate(sum('Baseline_data'[Sales]), removefilters('Baseline_data'[Employee]))
Var __OverHead = sum('Baseline_data'[Overhead]
Var Result = Divide(sum('Baseline_data'[Sales]), __TotalSales) + __OverHead
return Result

 

 



Need Power BI consultation, hire me on UpWork .


If the post helps please give a thumbs up



If it solves your issue, please accept it as the solution to help the other members find it more quickly.




Tharun



Thank you for the solution @tharunkumarRTK, but no the Baseline calculation is correct and I do not want to change my view for scatter plot. It should strictly be Baseline Percentage vs Sales. I want to show the employees who are below baseline percentage.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.