Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Qlik sense : set analysis (and / or)

HI Experts,

How do I use an and / or in an set analysis expression in qlik sense.

Thanks

Erenst

1 Solution

Accepted Solutions
devarasu07
Master II
Master II

Hi,

Refer below example,

1) =Count({$<Type={'Accepted Lead'}>+<Type={'Instructed Lead'},ProductId-={'5'}>}TicketId)

above set expression will counting where TicketId is Type 'Accepted Lead' OR 'Instructed Lead':

3) Count(if(Completion_Date <= Due_Date and (Source = 'Assignments' or (Source = 'Tasks' and TASK_TYPE = 'Product')),Task_ID_New))

if we convert above expression into Set analysis it will be look like below,

count({<Source={'Assignments'},ID={"=Completion_Date<=Due_Date"}>+<Source={'Tasks'},TASK_TYPE={'Product'},ID={"=Completion_Date<=Due_Date"}>} Task_ID_New)

also check this beginners material

Hope this helps to you

Regards,

Deva

View solution in original post

5 Replies
devarasu07
Master II
Master II

Hi,

Refer below example,

1) =Count({$<Type={'Accepted Lead'}>+<Type={'Instructed Lead'},ProductId-={'5'}>}TicketId)

above set expression will counting where TicketId is Type 'Accepted Lead' OR 'Instructed Lead':

3) Count(if(Completion_Date <= Due_Date and (Source = 'Assignments' or (Source = 'Tasks' and TASK_TYPE = 'Product')),Task_ID_New))

if we convert above expression into Set analysis it will be look like below,

count({<Source={'Assignments'},ID={"=Completion_Date<=Due_Date"}>+<Source={'Tasks'},TASK_TYPE={'Product'},ID={"=Completion_Date<=Due_Date"}>} Task_ID_New)

also check this beginners material

Hope this helps to you

Regards,

Deva

Not applicable
Author

Thanks for the quick response, just a question, what is the "ID" field you use.

count({<Source={'Assignments'},  ID=  {"=Completion_Date<=Due_Date"}>+<Source={'Tasks'},TASK_TYPE={'Product'},ID={"=Completion_Date<=Due_Date"}>} Task_ID_New)

Thanks

Erenst

devarasu07
Master II
Master II

Hi,

It's RowNo()  AS  ID field from back-end script. Thanks

Not applicable
Author

Thanks you

devarasu07
Master II
Master II

Hi,

If it's all ok then can you close this thread by marking correct answer or mark it assumed answer. Thanks

Regards, Deva