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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. 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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.