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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
Anonymous
Not applicable

count number of active sales people pr day based on start and dismissal day of employee ex. weekend

Hi all, 

 

I want to calculate the number of active sales people pr day between two dates (which can be sumed in the total - for budget calculation) however, I want to exclude weekends and public holidays. I have a table of all over agent which has a column with different start dates and a second column with dates of dismissal (for active employee the value is TODAY()).  I have all our public holidays listed in a table with dates. 

 

Can anyone help me calculate the number of active sales people pr day between two dates excluding weekends and holidays?

 

Best,

 

NicoM96

3 REPLIES 3
v-xiaotang
Community Support
Community Support

Hi @Anonymous 

Thanks for reaching out to us.

Could you provide

(1) a sample file, you can replace raw data with bogus data to protect your privacy,

(2) or provide some sample data that fully covers your issue/question

(3) give your expected result based on the sample you provide

Thanks.

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Anonymous , if you want to know active , does week end matter ?

 

countx(filter(Table, Table[Start]<= today() &&(isblank( Table[Dismissal Date]) || Table[Dismissal Date] >= Today()) , Table[Employee]) 

 

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi again,

 

I need to calculate our sales budget for each day which is a determined from the number of active sales people. I want to create a table that shows the number of active people by date and all weekends should show a value of 0. The measure should be sumed in order to calculate the YTD budget 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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