Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
akpofureenughwu
Creator III
Creator III

Set Analysis

Compliments of the season,

I have set of data in the form

S/NCompanyAmount
1Sam 2000
2Luke1000
3Jack1200

Using the set analysis,

To calculate amount for sam company

Sum({$<Company = {'Sam'}>}[Amount])  === correct

I want to calculate all company but sam..

Sum({$<Company <> {'Sam'}>}[Amount])  === I got incorrect expression

I don't want to use

Sum({$<Company = {'Jack', 'Luke'}>}[Amount])  because in the real data.. I have millions of companies

Regards

1 Solution

Accepted Solutions
sunny_talwar

Try this

Sum({$<Company -= {'Sam'}>}[Amount])

or this

Sum({$<Company = e({<Company = {'Sam'}>}Company)>}[Amount])

View solution in original post

3 Replies
sunny_talwar

Try this

Sum({$<Company -= {'Sam'}>}[Amount])

or this

Sum({$<Company = e({<Company = {'Sam'}>}Company)>}[Amount])

Chanty4u
MVP
MVP

akpofureenughwu
Creator III
Creator III
Author

Thank you Sunny for your prompt response as always. Thank you for your contribution in 2017.

And to all the leading contributors in this community, I salute you.

Regards