cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
win_toeknee Member
Member

Average Number of Days Per Employee

Greetings my fellow Power BI ninjas! 

 

I am struggling to create the right syntax/measure that will help me calculate the average number of days for each Dispatch CSR. Below is a screenshot of a small sample of data. Notice how there are multiples for both Tracy + Humberto yet only 1 record for both Stephen + John.  

 

I also created a date table which has working day to correspond with the day in week. The goal is to calculate the average amount of days for each Dispatch CSR (excluding weekends). 

 

Any ideas on how I am able to do this will be much appreciated from you datanaut ninjas 

 

AvgDaysCSR.png

 

WorkingDayDayInWeek.png

1 ACCEPTED SOLUTION

Accepted Solutions
LivioLanzo Super Contributor
Super Contributor

Re: Average Number of Days Per Employee

@win_toeknee

 

check if this helps you: https://1drv.ms/u/s!AiiWkkwHZChHjyvMj0kgcbq5urJP

 

Capture.PNG

 


 


Did I answer your question correctly? Mark my answer as a solution!


Proud to be a Datanaut!  

5 REPLIES 5
LivioLanzo Super Contributor
Super Contributor

Re: Average Number of Days Per Employee

@win_toeknee

 

check if this helps you: https://1drv.ms/u/s!AiiWkkwHZChHjyvMj0kgcbq5urJP

 

Capture.PNG

 


 


Did I answer your question correctly? Mark my answer as a solution!


Proud to be a Datanaut!  

win_toeknee Member
Member

Re: Average Number of Days Per Employee

Absolutely stunning! How on earth did you come up with that syntax? I have been working on this problem for 3 days, never would I have been able to come up with that!!!

 

Gratitude...thank you! 

LivioLanzo Super Contributor
Super Contributor

Re: Average Number of Days Per Employee

Thank you for the feedback! 

 


 


Did I answer your question correctly? Mark my answer as a solution!


Proud to be a Datanaut!  

win_toeknee Member
Member

Re: Average Number of Days Per Employee

Question for you...how would you approach this same problem but taking the average days of each CSR as compared to today. 

 

Ex: What is the average amount of days for

 - Tracy Marcott 7/25/2014 - Today = 1108

 - Tracy Marcott 8/1/2014 - Today = 1103

 

 - Humberto Soistata 8/6/2014 - Today

 - etc...

 

 

 

 AvgDaysCSR.png

LivioLanzo Super Contributor
Super Contributor

Re: Average Number of Days Per Employee

If I have understood correctly, in the calculated column I have added, instead of my formula, you can input =TODAY()

 


 


Did I answer your question correctly? Mark my answer as a solution!


Proud to be a Datanaut!  

Helpful resources

Announcements
Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Summit North America

Power Platform Summit North America

Register by September 5 to save $200

Virtual Launch Event

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Users Online
Currently online: 289 members 3,185 guests
Please welcome our newest community members: