Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

Hiding null values in a column in SAP Crystal Reports

In SAP Crystal Reports, I have to show some of the numerical values of a column and if the sum is coming 0. I want to hide that.

I have written below formula however it still shows ‘0’ value:
* IIF ( ToNumber({Choice_.Choice1}) > 0 , true, false) >> Gives Count. Need Sum
* NOT(ISNULL({Choice_.Choice1}))
* IF( ToNumber({Choice_.Choice1}) > 0) then ToNumber({Choice_.Choice1})


1 Answer
Anil SAP Gupta

I am not sure where this formula is written. You have to write this formula in suppress part of Section Expert.

To open section expert, right-click Report Header -> Section Expert  click x->2 or suppress

Also, note that you can write the formula in any section where data is present in your report. Try below formula

ToNumber({Choice_.Choice1}) > 0 //You have to ensure choice1 should always a numeric value else report throws exception

Advertisements

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.