Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Hi All,
How to i get difference between two dates excluding weekends, please let me know how should i do that.
Hi,
What does your “diffenence” mean?
If you want to calculate the days between 2 dates excluding weekends, I can give you a sample.
I assume you have a table called CntDays like screenshot below.
1. Add a custom column in query editor.
2. Expand the “Custom” column and convert it to date type.
3. Calculate the “DayOfWeek” for “Custom” column.
4. Apply and close query editor. Add a new column to calculate weekdays.
Column = CALCULATE(COUNT(CntDays[DayOfWeek]), FILTER(all(CntDays), CntDays[DayOfWeek] <> 0 && CntDays[DayOfWeek] <> 6))
5. Now you can create a table visual to see count of days excluding weekdays.
Best Regards
Alex
Use a Date table wihtout weekends?
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 56 | |
| 42 | |
| 41 | |
| 21 | |
| 21 |
| User | Count |
|---|---|
| 148 | |
| 109 | |
| 63 | |
| 37 | |
| 36 |