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

Announcements
April 13–15 - Dare to Unleash a New Professional You at Qlik Connect 2026: Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
shyamcharan
Creator III
Creator III

Sets Analysis Query

Hi,

Can anyone please explain what point I miss in understanding the difference between '1' and '$' Identifier.

Please find the attached QVW document with a selection on the company.

I am expecting the Sum({$<Company = {'A','B'}, Year = {2011}>} Sales) value to be 2 rather than 8.

Thanks heaps in advance.

Regards,

Shyam.

16 Replies
shyamcharan
Creator III
Creator III
Author

Hi Dushan,

Yes you are correct.

But when I make a selection on the company and select A or B i should get 6 or 2 but not 8 correct?

Please correct me wherever required.

danieloberbilli
Specialist II
Specialist II

additional: the Company=A,B,  has an effect...its infact the effect why you don't get the 2 but the 8 instead...QlikView selects A AND B

Not applicable

Hi Shyam,

Then you have to change your expression like this

=Sum({<Year = {2011}>} Sales)

Not applicable

sum({<year={2011}>}sales)    u  will get

go like this and check it

Sum({1<Company = {'A','B'}, Year = {2011}>} Sales)

Not applicable

sum({<year={2011}>}sales)    u  will get       for indidual

 

go like this and check it

Sum({1<Company = {'A','B'}, Year = {2011}>} Sales)             for   8 

shyamcharan
Creator III
Creator III
Author

Thanks Daniel.

So from what I did so far,

I have Company ={'A','B'}.Year={2011} in the set and I have made a selection on the Category list box as Category=1. Then I can see the change.

But wondering now why the Company values in the sets is excluded.

Regards,

Shyam.

danieloberbilli
Specialist II
Specialist II

Beware that what you see in white/grey/green in the qlikview listboxes do not always have an effect on all your calculations...as I said, if you explicitly use these fields in Set Analysis - every user selection by Listbox might ignored (depending on what you define in set analysis)