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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
nareshthavidishetty
Creator III
Creator III

set analysis

Hi,

I need the below condition in set analysis..

(Sum({$} TOTAL SameStoreSalesTY)- Sum({$} TOTAL [Last Year MTD]))

where [Sold Location]={'17','18','29','70','76','102','105','129'}

Thanks..

6 Replies
Anil_Babu_Samineni

Perhaps This

(Sum({$< [Sold Location] = {'17','18','29','70','76','102','105','129'}>} TOTAL SameStoreSalesTY) -

Sum({$< [Sold Location] = {'17','18','29','70','76','102','105','129'}>} TOTAL [Last Year MTD]))


OR


(Sum({<Flag = {'$'}, [Sold Location] = {'17','18','29','70','76','102','105','129'}>} TOTAL SameStoreSalesTY) -

Sum({<Flag = {'$'}, [Sold Location] = {'17','18','29','70','76','102','105','129'}>} TOTAL [Last Year MTD]))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
sushil353
Master II
Master II

Hi,

Try this:

(Sum(TOTAL {$<[Sold Location]={'17','18','29','70','76','102','105','129'}>} SameStoreSalesTY)-

Sum(TOTAL {$<[Sold Location]={'17','18','29','70','76','102','105','129'}>} [Last Year MTD])

)

HTH

nagarjuna_kotha
Partner - Specialist II
Partner - Specialist II

May be like this ?

Sum ( {$<[Sold Location]={'17','18','29','70','76','102','105','129'}>}TOTAL SameStoreSalesTY)

-

Sum ( {$<[Sold Location]={'17','18','29','70','76','102','105','129'}>}TOTAL [Last Year MTD] )


I hope this may helps you.




-Nagarjun

Anonymous
Not applicable

its showing some error

Anil_Babu_Samineni

What was the error? And In your Condition does $ is acting over there? I've removed Starting and Ending Parenthesis from my earlier set operator

Sum({$< [Sold Location] = {'17','18','29','70','76','102','105','129'}>} TOTAL SameStoreSalesTY) -

Sum({$< [Sold Location] = {'17','18','29','70','76','102','105','129'}>} TOTAL [Last Year MTD])

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Anonymous
Not applicable

i need which requirement going to use this set analysis, please suggest.

i have been used one requirement but it not apt.