Forum Discussion

YasarKhan's avatar
YasarKhan
Frequent Visitor
6 years ago
Solved

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...
  • Parisha's avatar
    6 years ago
    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])))