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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
JustNewbie
Helper I
Helper I

Networkdays Date diff between two tables

Hi,

I have 2 different connected tables.

How do i include the Networkdays in the Dax below?
Days = DATEDIFF(RELATED(Packing[Date].[Date]),Shipping[Date ].[Date],DAY)

 

I try this but it give me errors

Days = Networkdays(DATEDIFF(RELATED(Packing[Date].[Date]),Shipping[Date ].[Date],DAY),1)

 

Help please... thank you.😊

1 ACCEPTED SOLUTION
Anonymous
Not applicable

you have created a column instead of a measure

For a column, it would go as below: 

Rushki_0-1668775280881.png

 

View solution in original post

8 REPLIES 8
JustNewbie
Helper I
Helper I

Hi @amitchandak can help me please? 

JustNewbie
Helper I
Helper I

Hi, can anyone advise please?

Anonymous
Not applicable

Hey @JustNewbie ,
Can you please share a screenshot of the relationship of these two tables and the error that you are getting

Hi @Anonymous  screenshot below

JustNewbie_0-1668743218229.pngJustNewbie_1-1668743278211.png

How to make the error go away?

Anonymous
Not applicable

@JustNewbie ,
Can you try 

NetWD = NETWORKDAYS( MAX(Packing[Date]), MAX(Shipping[Date]))

Output below: 
Rushki_0-1668759697335.png

 

@Anonymous 

 

But it give wrong result...

JustNewbie_0-1668763214018.png

 

JustNewbie_1-1668763262597.pngJustNewbie_2-1668763281567.png

 

Anonymous
Not applicable

you have created a column instead of a measure

For a column, it would go as below: 

Rushki_0-1668775280881.png

 

JustNewbie
Helper I
Helper I

Can anyone help please?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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