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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
reyouk3310
Contributor II
Contributor II

Get listbox value in table

Hi all,

I'm using Qlikview and I want to compare the product quantity of each country in the same table by year.

I have create two alternatives statas in order to create two independent listboxes by using same dimension year.

Actually, I want to put in the set analysis of each column a condition which allows me to get the value of each listebox

I have tried GetCurrentSelections to get the object value, but it does not work.

Quantity 2016  => Sum({$<year={$(=GetCurrentSelections(MB02))}>}   [Quantity])

Quantity 2017  => Sum({$<year={$(=GetCurrentSelections(MB03))}>}   [Quantity])

Capture3.PNG

Do you have an idea please ?

Thanks

Labels (1)
1 Solution

Accepted Solutions
reyouk3310
Contributor II
Contributor II
Author

Thank you again.

Your seconde proposition give me the total of all states.

I have tried the following set analysis ant it works now:

Quantity 2016  => Sum({[GroupA]*$}  [Quantity])

Quantity 2017  => Sum({[GroupB]*$}  [Quantity])

Thank you veru much

View solution in original post

4 Replies
sunny_talwar
MVP
MVP

Try this

Quantity 2016  => Sum({$<year = p(MB02)}>}  [Quantity])

Quantity 2017  => Sum({$<year = p(MB03)}>}  [Quantity])

reyouk3310
Contributor II
Contributor II
Author

Hi Sunny Talwar,

Thank you for the message. I tried it but it does not work.

For your information, MB02 and MB03 are the Object ID of the two lisbox.

Capture33.PNG

sunny_talwar
MVP
MVP

Oh okay, I guess you have Year field in two different states? Try this

Quantity 2016  => Sum({$<year = [GroupA]::year>}  [Quantity])

Quantity 2017  => Sum({$<year = [GroupB]::year>}  [Quantity])

reyouk3310
Contributor II
Contributor II
Author

Thank you again.

Your seconde proposition give me the total of all states.

I have tried the following set analysis ant it works now:

Quantity 2016  => Sum({[GroupA]*$}  [Quantity])

Quantity 2017  => Sum({[GroupB]*$}  [Quantity])

Thank you veru much