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
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 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.

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

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