Forum Discussion
YasarKhan
6 years agoFrequent Visitor
Create DAX Measure to get data based on condition from two tables?
Hello Experts, I have a situation where I need to calculate quantity based on the condition of two date fields which are placed in two different tables. I am trying to calculate the sum of de...
- 6 years agoTry modifying your measure as below and check ... OTIF = CALCULATE(sum(CustPackingslipTrans[Delivered Qty]), FILTER('CUSTPACKINGSLIPTRANS', 'CUSTPACKINGSLIPTRANS'[DELIVERYDATE].[Date]<= RELATED('Sales Line'[Requested Ship Date].[Date])))
Parisha
6 years agoMicrosoft Employee
Try modifying your measure as below and check ... OTIF = CALCULATE(sum(CustPackingslipTrans[Delivered Qty]), FILTER('CUSTPACKINGSLIPTRANS', 'CUSTPACKINGSLIPTRANS'[DELIVERYDATE].[Date]<= RELATED('Sales Line'[Requested Ship Date].[Date])))