Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how to suppress rows with 0's and '-'

I am working on information related to donors, for years 2010 and 2009. I want to supress the rows which is having 0 donors in 2010. I have to use either setanalysis or if cond...but I am unable to do...please help me

15 Replies
SunilChauhan
Champion II
Champion II

if( isnull(donors)=0,donors)

then supress null

hope this works

if not understand correctly then share a sample.

Sunil Chauhan
Not applicable
Author

I supreesd nulls so I eliminated 0's but still m getting '_' . How should I supress the rows having '_'

swuehl
MVP
MVP

Please describe your current setting, by listing your (calculated?) dimension and your expressions.

Or post your application here (upload available in the advanced editor).

It's getting hard to know what your problem is, also too many different approaches around.

Not applicable
Author

Hi Pramodreddy,

You want to supress all the rows with 0 donors in 2010. If I understand what you asking, is that  you want to do so regardless of what you had as donors in 2009 (in the sam rows) ?

Ok, since " Sum({$<CAMPAIGNYEAR ={ $(vCurrentYear)},TrackParam.CAMPAIGNSTATUS={'F'},TrackParam.CAMPAIGNACCOUNT={'18'},TrackParam.CAMPAIGNTYPE={'empl'}>}TrackParm.NUMBEROFDONORS) "  is the expression that calculate the numbers of donors for the current year, I think you should just write the following code with an "If" condition, try it out:

= IF ( Sum({$<CAMPAIGNYEAR ={ $(vCurrentYear)},TrackParam.CAMPAIGNSTATUS={'F'},TrackParam.CAMPAIGNACCOUNT={'18'},TrackParam.CAMPAIGNTYPE={'empl'}>}TrackParm.NUMBEROFDONORS)= 0  OR 

Sum({$<CAMPAIGNYEAR ={ $(vCurrentYear)},TrackParam.CAMPAIGNSTATUS={'F'},TrackParam.CAMPAIGNACCOUNT={'18'},TrackParam.CAMPAIGNTYPE={'empl'}>}TrackParm.NUMBEROFDONORS)= ' ' , False() ,  Organizations.NAME1)

swarup_malli
Specialist
Specialist

Pramod,

If(sum({$<CAMPAIGNYEAR = {$(=num(vCurrentYear))},TrackParm.CAMPAIGNSTATUS = {"F"},TrackParm.CAMPAIGNACCOUNT = {"18"},TrackParm.CAMPAIGNTYPE= {"empl"}>}TrackParm.NUMBEROFDONORS)>0 or Null(), sum({$<CAMPAIGNYEAR = {$(=num(vCurrentYear-1))},TrackParm.CAMPAIGNSTATUS = {"F"},TrackParm.CAMPAIGNACCOUNT = {"18"},TrackParm.CAMPAIGNTYPE= {"empl"}>}TrackParm.NUMBEROFDONORS))

This should work

Regards

Swarup

Not applicable
Author

It worked!!!