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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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