Quantcast
Channel: Crystal Reports
Viewing all articles
Browse latest Browse all 1507

Dynamically create date range and find records with matching dates

$
0
0

Crystal Reports XI on Oracle 11

I need to create a range of dates based on todays date 'T'. The range of dates 'R' is the previous, rolling, 12 months from 'T'.

For each date 'D' in range 'R', I then want to calculate number 'N' of records where the record's date field {DTE} is equal to 'D'

The range of dates 'R' is then shown on a graph (X axis) and SUM(N) plotted on the Y axis. If N=0 then the group is still shown.

(The graph is obviously quite wide; this is okay and as designed; please don't worry about this)

How do I do this in Crystal?


Viewing all articles
Browse latest Browse all 1507

Trending Articles



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