Forum Discussion
anadavalos
7 years agoFrequent Visitor
adding column for distinct orders
column = calculate(SUM('Calendar for 5 day'[WorkDay]),filter('Calendar for 5 day',and('Calendar for 5 day'[Date]>orders[Order Date], 'Calendar for 5 day'[Date]<=Orders[shipped date]))) I am havin...
- 7 years ago
Have you solved your issue by now? If you have, could you please help mark the correct answer to finish the thread? Your contribution will be much appreciated.
Regards,
Jimmy Tao
v-yuta-msft
7 years agoCommunity Support
Suppose the two tables have relationship with each other, you may try measure below:
column =
CALCULATE (
SUM ( 'Calendar for 5 day'[WorkDay] ),
FILTER (
'Calendar for 5 day',
AND (
'Calendar for 5 day'[Date] > RELATED ( orders[Order Date] ),
'Calendar for 5 day'[Date] <= RELATED ( Orders[shipped date] )
)
)
)
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.