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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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