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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Calculating Average Sales of Employee between Start and End Date

Hi,

 

I wanted to seek inputs from here. Basically I wanted to calculate the average sales of employees between their start and end date then show it in a matrix with Employee name in rows and their averages sales in years as columns.

 

Here is my sample dataset.

 

Employee NameSalesStartEnd
John Doe                           598                 1/1/2020         6/1/2020            
Sarah6001/1/201912/31/2019
Sarah10001/1/201912/31/2019
Barry5001/1/20196/1/2019
Barry3001/1/20196/1/2019
Ivan2001/1/201812/1/2018
Ivan5001/1/201812/1/2018
Scott3001/1/20186/1/2018

 

My expected output should be like:

Employee Name          2018  2019  2020  
John Doe  598
Sarah 800 
Barry 400 
Ivan350  
Scott300  

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

1 REPLY 1
Anonymous
Not applicable

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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