Quantcast
Channel: SCN : Discussion List - SAP BusinessObjects Web Intelligence
Viewing all articles
Browse latest Browse all 5402

How to find the minimum date after the current

$
0
0

Hello,

 

 

i have a set of data with customer id, two different transaction types(a or b) and a date of transaction. i want to return the date of the next 'B' type transaction (including same day) i.e. the minimum date where customer id is the same - transaction type is 'B" and date is greater than or equal to current date, below is a sample table of data with my desired result.

 

IDTransactionDateDesired Result
1A01/01/201507/01/2015
1B05/01/201507/01/2015
1B07/01/201507/01/2015
2A01/01/201502/01/2015
2B02/01/201502/01/2015
2A05/01/2015--

 

Hello,

 

 

i have a set of data with customer id, two different transaction types(a or b) and a date of transaction. i want to return the date of the next 'B' type transaction (including same day) i.e. the minimum date where customer id is the same - transaction type is 'B" and date is greater than or equal to current date, below is a sample table of data with my desired result.

 

 

I've tried creating a variable [bDates] that only returns dates when transaction type is 'B' and then creating another variable as per the below

 

 

=Min([bDates]) Where ([bDates]>=[Date]) In ([ID])

 

 

however this is returning blank for all transactions with type A

 

 

not sure what i need to get the desired result.


Viewing all articles
Browse latest Browse all 5402

Trending Articles



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