Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Delete row if both actual and target values are zero

Hi Gurus,

I have a question. In a straight table, there are 5 columns.

Column 1 merged column - Sales,

Column 2 is subcategory for internal sales(again a merged column)- has two values internal sales and external sales

Column 3 metric metric under each subcategory such paints, soaps, fertilizers etc.

Now when both month actual and month target are both 0 & 0, i dont want to show them or in short i want to delete those columns or not show them whichever is convenient. I believe I can achieve this in expressions by using if condition but since columns are merged, deletion looks like a problem.

So, how can i achieve this ?

In the example below, soap and detergent are both 0 and 0, i want to not show them.

1 Solution

Accepted Solutions
qlikviewwizard
Master II
Master II

Hi malaykhanwalkar

Please use this in status Expression. Hope this is what you are expecting.

=if([Quarter Actual]<>0 and [Quarter Target]<>0 or [Quarter Actual]>[Quarter Target],'qmem://<bundled>/BuiltIn/led_g.png',

if([Quarter Actual]<>0 and [Quarter Target]<>0 ,'qmem://<bundled>/BuiltIn/led_r.png'))


Capture.JPG

View solution in original post

18 Replies
robert_mika
Master III
Master III

Is this your data in Excel or Qlikview?

I see Pivot not Straight Table

maxgro
MVP
MVP

in presentation tab 

- uncheck suppress 0 values for str table chart (top)

- check suppress 0 for pivot chart (bottom)

1.png

Not applicable
Author

Yes its a straight table. This is how it looks in Qlikview.

Thanks Massimo, let me work on your inputs.

Not applicable
Author

Hi Robert,

Yes its a pivot table. So i cannot delete the rows in a pivot table? Is there any way I can achieve what i want with a pivot table?

sasiparupudi1
Master III
Master III

Please close this thread if you got your answer by marking the correct answer so that it will be helpful for others

Not applicable
Author

Hi Sasidhar,

Sadly I am still looking for more options.

sasiparupudi1
Master III
Master III

Hi

Please post your application

Sasi

qlikviewwizard
Master II
Master II

malaykhanwalkar

More options means?

Not applicable
Author

Hi,

I am uploading my application which has a table. Can someone help me remove rows where actual and target values are both 0 and 0.