Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

Sum data dependent on two different date filters

I am currently getting data from our Microsoft Dynamics AX tables. We have our sales quantities that when filtered by invoice date will give us the quantity that's been invoiced to date. We also have our sales quantities that when filtered by confirmed delivery date will provide us with the quantity that is in Open Order or Delivered status. The data for sales quantity is the same for both instances i.e. we use SALESQTY to get both invoiced or open & delivered sales quantities. The issue is that the invoice date doesn't provide us with the open order/delivered quantities, and the confirmed delivery date doesn't give us the invoiced quantities. I want to add these two together in the same column.

Essentially I want:

(SALESQTY(Filtered by Invoiced Date - Current Month/Year)+(SALESQTY(Filtered by Confirmed Delivery Date - Current Month/Year & Sales Line Status = "Open Orders" & "Delivered )

This might be an easy solution, I just haven't gotten it to work correctly.

4 Replies