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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
JawaharPrem6
Helper I
Helper I

Network Days Calculation between both Error shown

Hi,

Getting error while doing network days calculation, for this calculation i create a new table with date, week end Workday as given below.

JawaharPrem6_0-1721122349488.png

 

and getting error while calculating 

JawaharPrem6_1-1721122413076.png

 

Process_Time_New =
var _Start = Gobal_Master_Data_NA[Received_Date]
var _End = Gobal_Master_Data_NA[Completed_Date]
Return SUMX(
    CALCULATETABLE(
        Working_Dates,
        DATESBETWEEN(Working_Dates[Date],_Start,_End),
        Working_Dates[Workday]=1
    )
)
 
Thanks
Jawahar
3 REPLIES 3
Anonymous
Not applicable

Your solutions is great @bhanu_gautam 

Hi, @JawaharPrem6 

You can use the following DAX expression to calculate the number of network days excluding Saturday and Sunday:

 

NETWORKDAYS = NETWORKDAYS('Gobal_Master_Data_NA'[Received_Date],'Gobal_Master_Data_NA'[Completed_Date])

 

Here's the dataset I used:

vjianpengmsft_0-1721634345209.png

Here are the results:

vjianpengmsft_1-1721634539893.png

You can learn how to use this function from the link below:

NETWORKDAYS function (DAX) - DAX | Microsoft Learn

vjianpengmsft_3-1721634942994.png

I've uploaded the PBIX file I used this time below. In addition, I found a case with the same issue:

Solved: Network Days Calculation for Power Bi - Microsoft Fabric Community

vjianpengmsft_2-1721634773420.png

Solved: Network Days - Microsoft Fabric Community

 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

Best Regards

Jianpeng Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

 

 

bhanu_gautam
Super User
Super User

@JawaharPrem6 , Try using below measure

 

Process_Time_New =
VAR _Start = Gobal_Master_Data_NA[Received_Date]
VAR _End = Gobal_Master_Data_NA[Completed_Date]
RETURN
COUNTROWS(
FILTER(
Working_Dates,
Working_Dates[Date] >= _Start &&
Working_Dates[Date] <= _End &&
Working_Dates[Workday] = 1
)
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Hi, Thanks for your time,

it working but its counting insted of calculating time..

JawaharPrem6_0-1721129661808.png

 

calculated time like this

JawaharPrem6_1-1721129838602.png

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.