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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Ttaylor9870
Helper III
Helper III

Exclude 5 & 6 in weekday column, hopefully easy

Hey Experts!

 

I have the below custom column...

 

= [Target]/Date.DaysInMonth([Date])

 

But I would like to exclude day 5 & 6 in my [Weekday] column. Basically, before the equation above is performed so I'm getting Target divded by days in month minus weekdays 5 & 6.

 

(End goal is daily target minus weekends)

 

Any help would be greatly appreciated!!😁

 

Many Thanks,

 

Taylor

1 REPLY 1
kleigh
Responsive Resident
Responsive Resident

I found a community blog with a custom function to do this:
Date.Networkdays function for Power Query and Powe... - Microsoft Fabric Community

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.