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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Niels_NL
Helper I
Helper I

Total sales per employee & average sales of all employee - in ONE chart.

Hey guys,

 

situation is the following:

  • Sales table including 'revenue', 'date' and 'employee', etc.
  • Employee table including 'employee', etc.

My challenge is to create a barchart per employee showing their individual total sales revenue.

And in the same barchart, I also want to see a bar with the average of all total sales revenues per employee.

 

So, if emp1 has a total of $30,000 and emp2 has a total of $40,000.

The average of all total sales revenues per employee would be $35,000.

And those 4 values, I'd like to have in my chart.

 

I've tried some things myself and I managed to get some DAX measures, but when I have 2 DAX measures for both values in 1 chart, the average of all total sales revenues per employee gets re-calculated for each individual employee again.

 

Any solutions?

 

Thanks!

~ Niels.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Use Clustered column chart.

 

Put Emp on Axis and Revenue in Values

 

Then click on the Analytics button and add "Average Line"

 

Capture1234.PNG

 

 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Use Clustered column chart.

 

Put Emp on Axis and Revenue in Values

 

Then click on the Analytics button and add "Average Line"

 

Capture1234.PNG

 

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.