DynCalc displaying zeros

gsfeliu
Contributor

Hi all,

I have a dynamic calc that displays zeros instead of null when the source cell is null.

In the image below, MTD_CF is dynamic and it shall display None data under certain conditions. When None is null, MTD_CF is showing 0. Is there a way to avoid this so the dynamic calc shows nulls as well?

gsfeliu_0-1644313136601.png

I've tried with RemoveZeros, like this:

Return api.Data.GetDataCell("RemoveZeros(V#" & view & ":U1#None)").CellAmount

The code returns the result, but does not remove the zeros.

Any ideas?

Thanks in advance.

GSF

1 ACCEPTED SOLUTION

EricOsmanski
Valued Contributor

Try taking off ".CellAmount". That should have it return NULL.

View solution in original post

2 REPLIES 2

EricOsmanski
Valued Contributor

Try taking off ".CellAmount". That should have it return NULL.

gsfeliu
Contributor

Thanks Eric.

That worked. In an earlier version of my script I had to add ".CellAmount" for it to display any data at all. I did not think about removing it from the final version.

Regards,

GSF

Please sign in! gsfeliu