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

set analysis assistance

Hi,

I have the following expression

sum({<[Year]={'2019'}>}[HKD_Price])

I am trying to fix this to a list of 'Location' including CHK CTH CVN

{<Location={CHK, CTH,CVN }>

but i cannot link the 2 'sets' together

 

here is my effort but it returns no value

sum({1{<[Year]={'2018'}, [Location] = {'CHK', 'CTH', 'CVN', 'CSG','CYY', 'CHZ', 'CIN'}>} [HKD_Price])

Can anyone advise on how this set expression would be written.

Thank you in advance for your time and help.

Daniel

 

Labels (1)
1 Solution

Accepted Solutions
sergio0592
Specialist III
Specialist III

Hi,

Maybe try with

sum({1<[Year]={'2018'}, [Location] = {'CHK', 'CTH', 'CVN', 'CSG','CYY', 'CHZ', 'CIN'}>} [HKD_Price])

 

View solution in original post

4 Replies
Chanty4u
MVP
MVP

can you attach a sample?

and what is your expected output?

sergio0592
Specialist III
Specialist III

Hi,

Maybe try with

sum({1<[Year]={'2018'}, [Location] = {'CHK', 'CTH', 'CVN', 'CSG','CYY', 'CHZ', 'CIN'}>} [HKD_Price])

 

davyqliks
Specialist
Specialist
Author

Hi Sergio,

Thank you so much.....Can't believe i only was a single curly bracket out. Getting better though!

Thanks for your help and time. Much appreciated.

Daniel

davyqliks
Specialist
Specialist
Author

Thank you for the reply,

I just got round to looking and the suggestion worked.

Thank you for looking

Daniel