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
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
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!

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.