Crystal XI to Access 2007 database
I have the following data
ID VAR DateTimeStamp
90009 G8 24/5/09 00:00:00
90009 G8 24/5/09 11:00:00
90009 G8 24/5/09 12:00:00
90009 G99 24/5/09 13:00:00
90009 G99 24/5/09 14:00:00
90009 G99 24/5/09 14:30:00
90009 G99 24/5/09 14:50:00
(the datetimestamp is cast from a string datetimestamp) There isnt any other date field to extract.
I need to create a report with a distinct VAR count. Easily done via group on VAR this resulting in
VAR DistinctCount
G8 3
G99 4
however...this is seen as a duplicate. The requirement is for 1 VAR category and distinct count. To calculate this I plan to calculate maximum datetimestamp per ID, & return VAR value & create a distinct count for each VAR.
I have tried creating GRP#1 - ID, GRP#VAR and applying @maxdatetime however the distinct count only provides count per VAR per ID. I need per VAR distinct totals.
Also tried creating a group on @maxdate.... CR doesnt want to know about
Lastly, just with GRP#1 - ID, I tried creating a running total on STRVAR10.
i.e. Field to Summarize STRVAR10 = DistinctCount,
Evaluate formula - Maximum ({LOG.TIME_STAMP}, {LOG.ID})
Reset - Never
This doesnt provide any result.
Thoughts? Frustrated, as this should be simple.
Thanks
I have the following data
ID VAR DateTimeStamp
90009 G8 24/5/09 00:00:00
90009 G8 24/5/09 11:00:00
90009 G8 24/5/09 12:00:00
90009 G99 24/5/09 13:00:00
90009 G99 24/5/09 14:00:00
90009 G99 24/5/09 14:30:00
90009 G99 24/5/09 14:50:00
(the datetimestamp is cast from a string datetimestamp) There isnt any other date field to extract.
I need to create a report with a distinct VAR count. Easily done via group on VAR this resulting in
VAR DistinctCount
G8 3
G99 4
however...this is seen as a duplicate. The requirement is for 1 VAR category and distinct count. To calculate this I plan to calculate maximum datetimestamp per ID, & return VAR value & create a distinct count for each VAR.
I have tried creating GRP#1 - ID, GRP#VAR and applying @maxdatetime however the distinct count only provides count per VAR per ID. I need per VAR distinct totals.
Also tried creating a group on @maxdate.... CR doesnt want to know about
Lastly, just with GRP#1 - ID, I tried creating a running total on STRVAR10.
i.e. Field to Summarize STRVAR10 = DistinctCount,
Evaluate formula - Maximum ({LOG.TIME_STAMP}, {LOG.ID})
Reset - Never
This doesnt provide any result.
Thoughts? Frustrated, as this should be simple.
Thanks