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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

Calcuating working days between 2 dates

Hello World!

I have seen similar post but i was finding it hard to understand. I saw some forums taking about creating a calender but I have no idea on how to do that.

 

My query is that I have a table called Assessments and I would to calculate the number of days the assesment was open for, excluding weekend. There are blanks in the end date becase the are some assessments which are still open however I want to calculate how long the assessment are opened to day for these fields.

 

 

Here is the data.

IDAssessmentTypeStart DateEnd DateNo of Days
194105Assessment19/09/201730/10/2017 
203415Assessment18/09/201709/02/2018 
206458Assessment09/02/202022/02/2020 
206461Assessment09/02/201822/02/2018 
208758Assessment17/11/201822/08/2020 
211205Assessment21/10/2020  
212010Assessment20/03/201907/05/2019 
213061Assessment28/06/201724/07/2017 
215616Assessment09/10/2017  

 

I hope this was clear to everyone 🙂

 

Thanks

Viral 

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , refer if this blog on workday can help

https://www.sqlbi.com/articles/counting-working-days-in-dax/

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

Helpful resources

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