jschill2628
Programmer
Is there a way to show a ratio in Crystal reports? I don’t want a percentage I want the actual numbers i.e. 1/100 not 0.01 or 1%. I assume there is a formula, but I can’t think how that would go.
For example I have:
a formula such as the following: {near miss}
if {IRSCODE.CODE}in ["NME1", "NME2", "NME3"] then "Near Miss" else
if {IRSCODE.CODE}in ["PSE1", "PSE2", "PSE3", "PSE4"] then "Precursor" else
if {IRSCODE.CODE}in ["SSE1", "SSE2", "SSE3", "SSE4", "SSE5"] then "Serious Event" else
"Not Applicable"
I would like to get two different ratios. the first being “Serious event/ near miss”, and the second one being “Serious event/ Precursor”. and as you can see from above the field that I am pulling from is a coded field.
309 serious events, 20,923 Precursor Events, And 5,916 Near Miss Events
I want to show 309/20,923 and 309/5716.
Is there a way to show this in a cross tab or in the details section?
I have tried the following, but these are not working, I am missing something, and I am just to close to this to see what I am missing.
totext(if {IRSCODE.CODE}in ["SSE1", "SSE2", "SSE3", "SSE4", "SSE5"] then "Serious Event" ,0,"")
+"/"+ totext((if {IRSCODE.CODE}in ["NME1", "NME2", "NME3"] then "Near Miss"),0,"")
mid(towords({@Near Miss}), instr(towords({@Near Miss}), "and")+4)
Thanks for all your help!
For example I have:
a formula such as the following: {near miss}
if {IRSCODE.CODE}in ["NME1", "NME2", "NME3"] then "Near Miss" else
if {IRSCODE.CODE}in ["PSE1", "PSE2", "PSE3", "PSE4"] then "Precursor" else
if {IRSCODE.CODE}in ["SSE1", "SSE2", "SSE3", "SSE4", "SSE5"] then "Serious Event" else
"Not Applicable"
I would like to get two different ratios. the first being “Serious event/ near miss”, and the second one being “Serious event/ Precursor”. and as you can see from above the field that I am pulling from is a coded field.
309 serious events, 20,923 Precursor Events, And 5,916 Near Miss Events
I want to show 309/20,923 and 309/5716.
Is there a way to show this in a cross tab or in the details section?
I have tried the following, but these are not working, I am missing something, and I am just to close to this to see what I am missing.
totext(if {IRSCODE.CODE}in ["SSE1", "SSE2", "SSE3", "SSE4", "SSE5"] then "Serious Event" ,0,"")
+"/"+ totext((if {IRSCODE.CODE}in ["NME1", "NME2", "NME3"] then "Near Miss"),0,"")
mid(towords({@Near Miss}), instr(towords({@Near Miss}), "and")+4)
Thanks for all your help!