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: 
clovati
Partner - Creator
Partner - Creator

More Values in Set Analysis

Hi all!

I have this:

LOAD * INLINE [

    Country, Value

    USA, 100

    FRANCE, 300

    ITALY, 500

    MILAN0, 50

    INDIA, 1000

];

And want this output (ITALY must  be ITALY+MILANO and all the other must be 0)

  

USA0
FRANCE0
ITALY550
MILANO0
INDIA

0

I try with this ... but it's KO .

=If (Country = 'ITALY', Sum({$ <Country ={ITALY,MILANO}>} Value), 0)

Thanks in advance!

Labels (1)
1 Reply
sunny_talwar
MVP
MVP

May be try this

=If(Country = 'ITALY', Sum(TOTAL {$ <Country ={'ITALY', 'MILANO'}>} Value), 0)