Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
nareshthavidishetty
Creator III
Creator III

Set analysis

Hi ,

I'm getting the expression error while writing the logic.

Error is at Highlighted  arrow.Please find the below.

Logic :

If(District_RetailScorecard = 'Company' or [Sold Location] = '999',

    (sum({1<[Reported Date] =  {"$(='>=7/1/2016<=7/31/2016')"}>}, [Sold Location] =- {'040', '051', '099', '531', '800', '090','108'}>} TOTAL [Store Quota Amount]) * vMTDQ),

      If(/*District_RetailScorecard='District' or*/  [Sold Location] = '888',

        (sum({1<[Reported Date] =  {"$(='>=7/1/2016<=7/31/2016')"}>},'M/D/YYYY'))"}, [Sold Location] =- {'040', '051', '099', '531', '800', '090','108'}>} TOTAL [Store Quota Amount]) * vMTDQ),

       (sum({1<[Reported Date] =  {"$(='>=7/1/2016<=7/31/2016')"}>}, 'M/D/YYYY'))"}, [Sold Location] =- {'040', '051', '099', '531', '800', '090','108'}>} [Store Quota Amount]) * vMTDQ))

Image:

Untitled.png

Thanks..

14 Replies
jyothish8807
Master II
Master II

Hi Naresh,

I found two issues, which i have highlighted in red:

If(District_RetailScorecard = 'Company' or [Sold Location] = '999',

    (sum({1<[Reported Date] = {"$(='>=7/1/2016<=7/31/2016')"}removed >}, [Sold Location] -={'040', '051', '099', '531', '800', '090','108'}>} TOTAL [Store Quota Amount]) * vMTDQ),

Regards

KC

Best Regards,
KC
Anil_Babu_Samineni

Try This

Logic :

If(District_RetailScorecard = 'Company' or [Sold Location] = '999',

    (sum(TOTAL {1<[Reported Date] =  {"Date(=$('>=' & 7/1/2016 '<=' & 7/31/2016')"}>}, 'M/D/YYYY')"}, [Sold Location] -= {'040', '051', '099', '531', '800', '090','108'}>} [Store Quota Amount]) * vMTDQ),

      If(/*District_RetailScorecard='District' or*/  [Sold Location] = '888',

        (sum(TOTAL {1<[Reported Date] =  {"Date(=$('>=' & 7/1/2016 '<=' & 7/31/2016')"}>}, 'M/D/YYYY')"}, [Sold Location] -= {'040', '051', '099', '531', '800', '090','108'}>} [Store Quota Amount]) * vMTDQ),

       (sum({1<[Reported Date] =  {"Date(=$('>=' & 7/1/2016 '<=' & 7/31/2016')"}>}, 'M/D/YYYY')"}, [Sold Location] -= {'040', '051', '099', '531', '800', '090','108'}>} [Store Quota Amount]) * vMTDQ))

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
nareshthavidishetty
Creator III
Creator III
Author

Hi,

Still Getting the error..

I have simply test below logic in text object and it gives 'Error in set modifier expression'

Logic:=sum({1<[Reported Date]={"$(='>=7/1/2016'<='7/31/2016')"}TOTAL [Store Quota Amount]))

Thanks..

Anil_Babu_Samineni

Is there any chance to share the Application. Because, It seems typo error. We will figure out if we get your application

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
sunny_talwar

Where did you Sold Location set modifier go?

Try one of these:

=sum({1<[Reported Date]={"$(='>=7/1/2016'<='7/31/2016')"}>} TOTAL [Store Quota Amount]))


or


=sum({1<[Reported Date]={"$(='>=7/1/2016'<='7/31/2016')"}, [Sold Location] =- {'040', '051', '099', '531', '800', '090','108'}>}TOTAL [Store Quota Amount]))