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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Excluding Zeros in a table

Hi Experts,

I have a table which contains three fields, One is Product, second is Amount , and another is quantity.

I need to exclude the products from table which doesn't have sales (that means Zero in amount field).

I am new to qlikview can any one help me in this.

Thanks in advance.

Pradeep

5 Replies
Not applicable
Author

Hi pradeep,

Please find the below example and try this Load statement,

ProductAmountQuantity
A12
B0
CNull
D103
E54
FNull

LOAD Product,

     Amount,

     Quantity

FROM

<Your File Name>

(ooxml, embedded labels, table is Sheet1)

WHERE(Amount >'0');

Reagrds,

Senthil

er_mohit
Master II
Master II

load

if(Amount>0,Product) as Product,

if(Amount>0,Amount) as Amount

Quantity

from your datasource;

or try this way

load

Product,

Amount

Quantity

from your datasource

where Amount>0;

hope it helps

Not applicable
Author

Hi Senthil and Mohit,

Thanks for your answers!

But the thing is that i have two sheets . In first sheet i need all the products(Even if there is no sales) for another analyze.

In the second sheet i need the products only with the sales.

Could you please suggest the way using set Analysis.

Not applicable
Author

Hi Mohit,

Thanks for your answers!

But the thing is that i have two sheets . In first sheet i need all the products(Even if there is no sales) for another analyze.

In the second sheet i need the products only with the sales.

Could you please suggest the way using set Analysis.

Not applicable
Author

Hi Pradeep,

Try this Load statement,

for i = 1 To < No of sheet> // For Ex, 4

LOAD Region,

     Country,

     Year,

     Month,

     Rep,

     Sales

FROM

< Your Excel file Name >

(ooxml, embedded labels, table is [Page$(i)]);

NEXT

Here, I am mentioned sheet name is Page1, Page2...

Regards,

Senthil...