I have a cross-tab showing analytical results that are stored in text format in the database. This worked fine until I needed to make some calculations like Avg and StdDev, that shall also be shown in the cross-tab.
To complicate everything the user can set a boolean parameter to hide some results if they have a surtain flag set to true. To accomplish this i used the following formula:
If ({PV.questionMark} = 1 and {?showMv} = true) then
""
else if
(isnull({PV.formattedValue}) = true) then
""
else
{PV.formattedValue}
Now I need to convert the results to numeric format, to use as input in the cross-tab, but in all formulas I've tried, I get 0 (zero) instead of null in the fields that has been set to "" in the formula above, which results in errors in the calculations.
How shall I write a formula to get null in the numeric fields that are empty?
Thanks
/LO
To complicate everything the user can set a boolean parameter to hide some results if they have a surtain flag set to true. To accomplish this i used the following formula:
If ({PV.questionMark} = 1 and {?showMv} = true) then
""
else if
(isnull({PV.formattedValue}) = true) then
""
else
{PV.formattedValue}
Now I need to convert the results to numeric format, to use as input in the cross-tab, but in all formulas I've tried, I get 0 (zero) instead of null in the fields that has been set to "" in the formula above, which results in errors in the calculations.
How shall I write a formula to get null in the numeric fields that are empty?
Thanks
/LO