Forum Discussion
NETWORKDAYS between two tables containing duplicate OrderIDs
- Anonymous1 year ago
Hi, Fredde86
Based on your information, I created sample tables:Then create a new measure, try the following DAX expression:
Diff Days *History* = SUMX ( FILTER ( MANUFACTURING_ORDERS_HISTORY, MANUFACTURING_ORDERS_HISTORY[OrderID] = MAX(ITEM_TRANSACTION_HISTORY_SUM[OrderID]) && MANUFACTURING_ORDERS_HISTORY[Item Nr] = MAX(ITEM_TRANSACTION_HISTORY_SUM[Item Nr]) ), NETWORKDAYS ( MANUFACTURING_ORDERS_HISTORY[Due Date History], MAX(ITEM_TRANSACTION_HISTORY_SUM[Date]) ) )Put it in table visual, here is my preview:
How to Get Your Question Answered Quickly
Best Regards
Yongkang Hua
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, Anonymous
Thank you for your answer!
However, I don´t get any values when I create your measure and put it into a table.
Could it have something to do with my relationships beeing many-to-many between these tables? (OrderId-OrderId)
Thankful for any assistance!
Hi, Fredde86
I didn't give them a relationship.
When I try to give them a many-to-many relationship, I also get a blank.
You may be able to try deleting the relationship
Best Regards
Yongkang Hua