Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
nburton78
Creator
Creator

Sumifs using date and dimension

I am working in a a straight table and I need help figuring out how to make the last column in Qlikview.   I have created the table in excel using the following formula:

=SUMIFS(C:C,A:A,A2,D:D,"<"&D2)

sum order quantity if it is the same part number and the Promised ship date is less than given promised ship date

 Part NumberQty on Handorder quantityPromised ship dateconsumed
Part A50101/1/20200
Part A50102/1/202010
Part A50103/1/202020
Part B30101/1/20200
Part B30102/1/202010
Part B30103/1/202020
Part B30104/1/202030

 

The formula I have in Qlikview currently only sums the order quantity based on the part number:

sum(Total <WW_Item_Number__SDLITM> Quantity_Ordered__SDUORG)

 

How would I add the date aspect?  

Labels (4)
14 Replies
Kushal_Chawda

Based on your logic expression provided should work fine. In this case would you be able to share sample data or app?

nburton78
Creator
Creator
Author

Here's a sample, its summing the total qty each time and it only needs to sum the previous order line.

Kushal_Chawda

see attached

 

nburton78
Creator
Creator
Author

Thank you so much this works perfectly!  Can you explain what  you did? 

Kushal_Chawda

I just removed total keyword from sum().