Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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,



Resolver II
Resolver II

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

PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors