Hi guys,
Just wanted to ask how to get the LATEST transaction date for every customer using INFORMATION DESIGN TOOL?
For example, this is my raw data:
Transaction Date | Customer | Material | Amount |
---|---|---|---|
20160105 | A | X | 10 |
20160121 | A | X | 20 |
20160210 | A | X | 30 |
20160225 | A | X | 40 |
20160304 | A | X | 50 |
20160316 | A | X | 60 |
20160103 | B | X | 70 |
20160108 | B | X | 80 |
20160124 | B | X | 90 |
20160206 | B | X | 100 |
20160215 | B | X | 110 |
20160218 | B | X | 120 |
I wanted to have this query:
My parameter is transaction date..So if user entered 20160201 - 20160229, this will be my result..
Customer | Last Transaction Date | Amount |
---|---|---|
A | 20160225 | 40 |
B | 20160218 | 120 |
So if user again entered 20160101 - 20160131, this will be my result..
Customer | Last Transaction Date | Amount |
---|---|---|
A | 20160121 | 20 |
B | 20160124 | 90 |
I tried to use the MAX function but did not get the desired result..Is there a CONDITION in universe similar to query designer?
Thank you.
Loed