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

Announcements
FLASH SALE: Save $500! Use code FLASH2026 at checkout until Feb 14th at 11:59PM ET. Register Now!
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

May be try this

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