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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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