Hello, I'm using CR10. I have a data set like the one below:
case 1
type Diagnostic
Case 2
type Diagnostic
type Interventional
Case 3
type Interventional
I have used the following formula to create a tally for each case type:
if {CATH_PROC_V.CASE_TYPE} = "Interventional Cath" then 1
CDbl(
sum({@Interventional},{CATH.CATHID}) > 0 and
not({CATH_PROC_V.CASE_TYPE} in ['Diagnostic Cath']
) or
sum({@Interventional},{CATH.CATHID}) = 0)
The results I'm looking for, would be a cross tab report similar to this:
Diagnostic Cases 1
Interventional 2
If it is only a diagnostic case, then the tally is 1 for diagnostic. If it is only an interventional case, then the tally is 1 for Interventional. If there is a diagnostic and interventional in the same case, we will ignore the diagnostic, and count the interventional.
When I use the above formula, and look at the details in my report, it is correct. But, when I put it into the cross tab, and sum on the tally, the numbers are very inflated (see below). I'm having a tough time understanding why.
Total
Cardiac - Diagnostic 7
Cardiac - Interventional 27
Total 34
Any help is greatly appreciated!
CJ
case 1
type Diagnostic
Case 2
type Diagnostic
type Interventional
Case 3
type Interventional
I have used the following formula to create a tally for each case type:
if {CATH_PROC_V.CASE_TYPE} = "Interventional Cath" then 1
CDbl(
sum({@Interventional},{CATH.CATHID}) > 0 and
not({CATH_PROC_V.CASE_TYPE} in ['Diagnostic Cath']
) or
sum({@Interventional},{CATH.CATHID}) = 0)
The results I'm looking for, would be a cross tab report similar to this:
Diagnostic Cases 1
Interventional 2
If it is only a diagnostic case, then the tally is 1 for diagnostic. If it is only an interventional case, then the tally is 1 for Interventional. If there is a diagnostic and interventional in the same case, we will ignore the diagnostic, and count the interventional.
When I use the above formula, and look at the details in my report, it is correct. But, when I put it into the cross tab, and sum on the tally, the numbers are very inflated (see below). I'm having a tough time understanding why.
Total
Cardiac - Diagnostic 7
Cardiac - Interventional 27
Total 34
Any help is greatly appreciated!
CJ