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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.