Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
COMPANY | ORDATE | dealdate | qty |
A | 2014/1/2 | 2013/12/20 | 30 |
2014/1/10 | 10 | ||
2014/2/1 | 20 | ||
B | 2014/3/12 | 2014/1/5 | 40 |
2014/3/6 | 20 | ||
2014/4/4 | 30 | ||
2014/4/12 | 40 | ||
2014/5/1 | 50 | ||
C | 2014/4/11 | 2014/2/5 | 20 |
2014/3/6 | 30 | ||
2014/4/4 | 40 | ||
2014/4/12 | 50 |
the COMPANY &ORDATE is fixed data . When I input a date , I want to get the sum(qty) between ordate and input-date for every company.
This must work:
sum( {<dealdate={"<=$(=date(testdate))"}>} if(INDATE<dealdate,qty))
regards
Darek
the sample is as attached.
jack,
Are your data coming from Excel Pivot Table?
Do you have the raw sources of data?
The data is from database .Attached is a actual data which ordate is property of company+item(which compose a key_gobkey).
If you have Company as dimension, then expression:
sum( {<dealdate={"=INDATE<dealdate"}>*<dealdate={"<=$(=date(testdate))"}>} qty)
should work
regards
Darek
it seem no ok . the expressing dealdate={"=INDATE<dealdate"} don't work . pls see attached.
This must work:
sum( {<dealdate={"<=$(=date(testdate))"}>} if(INDATE<dealdate,qty))
regards
Darek