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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

Line chart - compare individual vs average

Hello, Im making a line chart where you can select an invidual employee and compare his/hers working hours to the average of all employees.

 

Here is what i got now. You can select the employee in the slicer to the left. The working hours for the employee is shown in the line chart in the middle. The line chart to the right is based on a measure which calculates the average by dividing total hours with total number of employees. However I want to combine the line charts into a single one. But since it interacts with the employee slicer it wont show the average for all employees. 
1.png

 

Here is what I want:

2.png

1 REPLY 1
Gordonlilj
Solution Sage
Solution Sage

Hi,

 

You could try using the the ALL function inside your measure. Perhaps something like the example below

CALCULATE( AVERAGE( 'Table'[Hours] ), ALL( 'Table'[Employee] ) )

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors