Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
markus19-85
Partner - Contributor III
Partner - Contributor III

or-connection

Hi, I have the following problem.

I want to use an or-connection in my application.

If I select BMW and the colour blue, I get an amount of 10, but I would like to get the amount of all BMW and all cars with the colour blue.

Is this possible, maybe in script or as a function?

Thanks for support

1 Solution

Accepted Solutions
MarcoWedel

=Sum({$<Colour=>+$<Car=>}Amount)

View solution in original post

8 Replies
MarcoWedel

=Sum({$<Colour=>+$<Car=>}Amount)

stigchel
Partner - Master
Partner - Master

You can use set analysis for that, for the above example

=sum({<Colour,Car=Car>+<Car,Colour=Colour>} Amount)

markus19-85
Partner - Contributor III
Partner - Contributor III
Author

sorry, but this is not working

Qrishna
Master
Master

Capture1.PNGFor Code, See Attached.

stigchel
Partner - Master
Partner - Master

Your reply is not very helpfull in resolving this, what is not working?? Not at all, other value then expected? What value do you expect?

See attached, for me working, example

MarcoWedel

like this?

QlikCommunity_Thread_170749_Pic1.JPG

QlikCommunity_Thread_170749_Pic2.JPG

hope this helps

regards

Marco

markus19-85
Partner - Contributor III
Partner - Contributor III
Author

Yes, that's what i am looking for, thank you.

But does it also works with another field? for example, Sales_Person?

markus19-85
Partner - Contributor III
Partner - Contributor III
Author

any other solution, for more than two fields?