Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8122

Re: How to find the minimum date after the current

$
0
0

Hello,

 

I am getting the below using the following variables:

 

[bDates] = [Date] Where([Transaction]="B")

[daysDiff] = DaysBetween([bDates];[Date])

 

Result =Min([daysDiff]) Where ([daysDiff] >= 0)  In ([ID])

 

IDTransactionDateDesired ResultbDatesdaysDiffresult
1A01/01/201507/01/20150
1B05/01/201507/01/201505/01/201500
1B07/01/201507/01/201507/01/201500
2A01/01/201502/01/20150
2B02/01/201502/01/201502/01/201500
2A05/01/2015--0

Viewing all articles
Browse latest Browse all 8122

Trending Articles



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