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: 
qlikview979
Specialist
Specialist

Set Expression

Hi Experts,

How can i write this in set expression,Here my dimension is Product

sum(if(Product='Shoes',if(sales>1500,sales),sales))

1 Solution

Accepted Solutions
sunny_talwar

Try this

Sum({<Product = {'Shoes'}, sales = {'>1500'}>+<Product -= {'Shoes'}>}sales)

View solution in original post

17 Replies
qlikview979
Specialist
Specialist
Author

Help me on this loveisfailvinieme12avinashelite

Regards

sunny_talwar

May be this

Sum({<Product = {'Shoes'}, sales = {'>1500'}>}sales)

Frank_Hartmann
Master II
Master II

try like this:

sum({<Product={'Shoes'}, sales={"=sales>1500"}>} sales)

hope this helps

sunny_talwar

Or may be this

Sum({<Product = {'Shoes'}, sales = {'>1500'}>+<Product -= {'Shoes'}>}sales)

qlikview979
Specialist
Specialist
Author

Hi Bro,

If condition and set expression is giving different result.

like below

Untitled.png

sunny_talwar

Try this

Sum({<Product = {'Shoes'}, sales = {'>1500'}>+<Product -= {'Shoes'}>}sales)

qlikview979
Specialist
Specialist
Author

Not working what you people are provided

vinieme12
Champion III
Champion III

may be


sum({<Product={"=SUM({<Product = {'Shoes'}>}sales)>1500"} >}sales)

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
vinieme12
Champion III
Champion III

can you post your sample?

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.