Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how to exclude values with conditions!

Hello every one ,

Every day I learn a new thing in Qlikview ; today I have to exclude values from a tables with condition.

When "Product_Field"=value then  exclude the product .

When I have CA=0 , I want to exclude the product from the table . like this screenshot:

1 Solution

Accepted Solutions
maxgro
MVP
MVP

replace Produit with a calculated dimension

=if(aggr(sum(CA),Produit)>0,Produit)

and then suppress when value is null

I suppose Dariusz's answer works if you apply the same logic to all expression (try with one expression and let we know)

View solution in original post

10 Replies
MK_QSL
MVP
MVP

If you want to do SUM of Sales with Excluding Germany....

Use the same in your application.

SUM({<Country -= {'Germany'}>}Sales)

Not applicable
Author

I want to do : sum ( sales) when CA >0

( CA is calculation )

its_anandrjs

Where in front end you want to do this logic. On front end do like

Expression:-

Sum( if(CA>0,sales,0) 

Not applicable
Author

You may also use conditions like this:

sum({<Product={"=sum(CA)>0"}>}sales)

in that case  sum(CA)>0 is search string

Find set analysis in help and look on "Set Modifiers with Advanced Searches"

regards

Darek

Not applicable
Author

Thank you for your response , but it doesn't work with my Dimension .

Im using "Product" like dimensions and I want to display only Products with CA >0.

I don't need to show others .

Not applicable
Author

I trying to activate condition of the  dimension "Produit", if(Sum(CA)>0,Produit,0), else the product will be Hiden.

This solution doesn't work.

dseelam
Creator II
Creator II

Add a Calculated Dimension Where CA>'0' AND Suppress Nulls

maxgro
MVP
MVP

replace Produit with a calculated dimension

=if(aggr(sum(CA),Produit)>0,Produit)

and then suppress when value is null

I suppose Dariusz's answer works if you apply the same logic to all expression (try with one expression and let we know)

Not applicable
Author

It still should work ....