Right click on the crosstab field->format field->number->customize->decimals->x+2 and use a formula like the following where "table.vitals" is your column field with the curly brackets removed:
if GridRowColumnValue ("table.vitals") = "BP" then 0 else
if GridRowColumnValue ("table.vitals") = "temp" then 2 else 0 //or your default
Worked perfectly---Thank you very much. Another question, can I insert a text object (/) at the end of one column but not the others in a crosstab?
Thanks again!
You can't really tack that onto the value since it would become a string and you would lose your ability to calculate with it. Instead you could recreate the crosstab, using the same row and column field, and for the summary, use the following formula:
whilereadingrecords;
if {table.vitals} = "Systolic BP" then "/" else ""
Then go to the customize format tab and check "Suppress row totals"->check "suppress column totals". Then click on "format grid lines"->uncheck "show grid lines". Then in preview or design mode, suppress both the column and the row labels. Place the second crosstab directly over the first one so that the slash mark fits at the end of the first column (You'll have to format the slash mark to be right justified).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.