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 write OR condition in the set analysis

hi all,

As per the requirement, i need to write the condition combining 'and ' and 'OR' condition in the set analysis.

Please let me know ASAP.

Category like 'SYSTEM %'

    or Categorylike 'HARDWARE%' in the single condition .

Thanks in advance,

Smitha

3 Replies
ashfaq_haseeb
Champion III
Champion III

Hi,

Try below

=sum({<Category = {'SYSTEM*','HARDWARE*'>}Amount)

Regards

ASHFAQ

avinashelite

Hi Smitha,

Please try like this:

sum({<Category={'SYSTEM %'},Category={'HARDWARE %'}>}amount)

or if(Category='SYSTEM %' or Category='HARDWARE %', sum(amount))

if(Category='SYSTEM %' and Category='HARDWARE %', sum(amount))

VishalWaghole
Specialist II
Specialist II

Hi Smitha,

Try this

=sum({<Category={'SYSTEM*'}> + <Category={'HARDWARE'}>} Amount)

Hope it will work for you.

-- Regards,

VIshal Waghole