Quantcast
Channel: SCN : Unanswered Discussions - Semantic Layer
Viewing all articles
Browse latest Browse all 1291

How to get latest transaction date?

$
0
0

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 DateCustomerMaterialAmount
20160105AX10
20160121AX20
20160210AX30
20160225AX40
20160304AX50
20160316AX60
20160103BX70
20160108BX80
20160124BX90
20160206BX100
20160215BX110
20160218BX120

 

 

 

I wanted to have this query:

 

My parameter is transaction date..So if user entered 20160201 - 20160229, this will be my result..


CustomerLast Transaction DateAmount
A2016022540
B20160218120

 

 

 

So if user again entered 20160101 - 20160131, this will be my result..


CustomerLast Transaction DateAmount
A2016012120
B2016012490

 

 

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


Viewing all articles
Browse latest Browse all 1291

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>