Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3074

How to make amount zero based on Minimum date

$
0
0

Hi,

 

Below is my requirement, I need to find minimum date in type group where group name equal to 'aaa' then compare rest of Transaction group dates, if any date is less than this date then make amount zero.

 

Ex: in 101 transaction minimum date for type 'aaa' is 01/01/2010 and when compare this date with rest of dates 01/01/2009 is less than this date so, my amount should be zero.

 

Transaction

typedateamountrequired results

101

aaa01/01/201056785678
101aaa01/10/201154645464
101def05/08/201098769876
101dez01/01/200956560

101

dex05/01/201176587658
102aaa01/10/201167856785
102aaa01/01/200945670
102xdw

11/12/2008

32343234
102dfe10/12/201021232123
102xsd03/12/201145634563

 

 

 

I can do this through sub report, but due to huge volume of date this report is running for 10 hrs.and it is not acceptable.  Need to do this in single report.

 

Thanks in advance for any suggestions.

 

-Sastry


Viewing all articles
Browse latest Browse all 3074


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