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: 
paul_ripley
Creator III
Creator III

Set Analysis with an expression


Hello

I have some data and I would like to limit the entities and account codes within that data that are brought back.

An example of a basic expression on my data which works is

sum ( {  <account = {'1101'}, Entity  = {'0415'}> } gl_amount)

What I really want is to show all 1* accounts and all entities either  <'0900' or <'A0900'

I tried using wildmatch for the account and failed and also not sure how to limit the entities

any help would be appreciated

Thanks

Paul

5 Replies
pokassov
Specialist
Specialist

Something like this?


sum ( {$<account = {'=1*'}, Entity  = {'<*0900'}>} gl_amount)

jolivares
Specialist
Specialist

You must user "

sum ( {$<account = {'=1*'}, Entity  = {"<0900"}+ {"<A0900"}>} gl_amount)

stigchel
Partner - Master
Partner - Master

Think the <*0900 or <A0900 do not work? Maybe something like

sum ( {$<account = {"=1*"}, Entity  = {"=Keepchar(Entity,'0123456789')<900"}>} gl_amount)

sunny_talwar

Can you share some sample data to check out how exactly the data look?

paul_ripley
Creator III
Creator III
Author

Hi All

Thanks for your help

I couldn't get it to work but it is possibly my data so I will continue to investigate

Kind regards

Paul