Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
mahendragaur
Creator
Creator

Set Analysis

Hello,

I have a list of Process and out of which I want only Process "a" & "b" data in sheet. I used Set for the same. But my requirement is

1> If user select only process "a" then it should show data for process "a"

2> If user select any process other than "a" & "b" then it should show data for "a" & "b" only.

Attached is my qvw

1 Solution

Accepted Solutions
Anil_Babu_Samineni

May be this?

If(GetFieldSelections(Process)='a' or GetFieldSelections(Process)='b',Sum(Value), Sum({<Process = {'a', 'b'}>}Value))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

13 Replies
saniyask
Creator
Creator

Hi,

Can you please reload the application and then attach it or attach the data set.

Regards,

Saniya

tresesco
MVP
MVP

Just put a '*' before '=' in your set analysis like:

Sum({$<Process*={'a','b'}>}Value)

Anil_Babu_Samineni

May be this?

If(GetFieldSelections(Process)='a' or GetFieldSelections(Process)='b',Sum(Value), Sum({<Process = {'a', 'b'}>}Value))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
manideep78
Partner - Specialist
Partner - Specialist

Hi,

Here is the expression,

=If(GetFieldSelections(Process)='a' or GetFieldSelections(Process)='b', sum(Value),sum({<Process={'a','b'}>}Value))

manideep78
Partner - Specialist
Partner - Specialist

This is amazing. tresesco‌ can you please share the resources where I can learn these type of simple tricks.

tresesco
MVP
MVP

  For this one: Implicit Set Operators

mahendragaur
Creator
Creator
Author

No this is not solving my purpose because if I'm selecting any process type other than a & b then it is not showing any data.

mahendragaur
Creator
Creator
Author

Thanks buddy...

mahendragaur
Creator
Creator
Author

What if I need a, b and c as well