Hi
I am using Crystal 9 reporting from an Access 2002 database.
I have a table that has patient chart number, account type, type of test and number of tests in a row. There could be more than one row per account (which is a unique number).
I've created a report where I have to time frames and a variance column. So for tests1 the formula is
If {@OrderDate} in Minimum({?Order Date}[1]) to Maximum({?Order Date}[1])
then {Tests_Volumes_new.TtlTests} else 0
The above value is then summed in the group.
I also want to show number of cases but only distinct count. I thought to create the formula:
If {@OrderDate} in Minimum({?Order Date}[1]) to Maximum({?Order Date}[1])
then {Tests_Volumes_new.FIN}&{Tests_Volumes_new.MRN}
and then do a distintcount per group. It originally looked like it worked but investigation revealed the results were incorrect.
How can I do this? Thanks.
I am using Crystal 9 reporting from an Access 2002 database.
I have a table that has patient chart number, account type, type of test and number of tests in a row. There could be more than one row per account (which is a unique number).
I've created a report where I have to time frames and a variance column. So for tests1 the formula is
If {@OrderDate} in Minimum({?Order Date}[1]) to Maximum({?Order Date}[1])
then {Tests_Volumes_new.TtlTests} else 0
The above value is then summed in the group.
I also want to show number of cases but only distinct count. I thought to create the formula:
If {@OrderDate} in Minimum({?Order Date}[1]) to Maximum({?Order Date}[1])
then {Tests_Volumes_new.FIN}&{Tests_Volumes_new.MRN}
and then do a distintcount per group. It originally looked like it worked but investigation revealed the results were incorrect.
How can I do this? Thanks.