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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.