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
sunny_talwar

See if this helps:

[Sold Location] ={'*'} - {'040', '051', '099', '531', '800', '090','108'}

Anonymous
Not applicable

try to Change the sign - before = (minus before equal)

[Sold Location] -= {

nareshthavidishetty
Creator III
Creator III
Author

Hi Sunny,

Still am getting the error..Please find below,

Untitled.png

Thanks..

sunny_talwar

My bad, your error is here:

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

Those need to be removed

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

trdandamudi
Master II
Master II

May be as below:

[Sold Location] - = {'040', '051', '099', '531', '800', '090','108'}>}

sunny_talwar

I don't think that is an issue. This just says that the result should change based on selection vs what he has won't change based on selections. I think the issue is here

Capture.PNG

trdandamudi
Master II
Master II

You have a point and it makes sense.... Also having the - (minus sign) after = (Equal) is incorrect or not ?

sunny_talwar

I think it is not incorrect to have it there.

Capture.PNG

sunny_talwar

In simple terms, it is correct to have a negative after the equal sign