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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Negect current seletion in a complicated set analysis expression

Hi, I have the following piece of data and what i would like to achieve is illustrated also.

    

Customer_noBank NoTransaction DateTransaction TypeAmount
C0001B00011/1/2015A1000
C0001B00011/1/2015B2000
C0001B00011/1/2015C2000
C0002B00021/1/2015A3000
C0002B00021/1/2015B3000
C0002B00021/2/2015A4000
C0002B00031/3/2015A4000
C0002B00041/3/2015B4000
C0003B00051/1/2015A5000
C0003B00051/1/2015B5000
C0004B00061/1/2015A6000
C0004B00061/1/2015A6000
C0004B00061/1/2015B8000
C0004B00071/1/2015A8000
C0004B00071/1/2015B1000
C0004B00081/1/2015A1000
C0004B00081/1/2015B8000
C0004B00081/1/2015A8000
C0004B00091/1/2015A1000
C0004B00091/1/2015B8000
C0004B00091/1/2015C8000

bank no count.png

Basically, user can input a number in the input box to indicate the maximum number of transaction a bank account number could have per day, and the scattered plot will display the customer number with the bank account that hit the criteria.

My problem now is that I want to keep the graph the same when each dot is selected. Usually this can be achieved by disregarding the dimension in set analysis. In this case this will be {<Customer_no=>}.

However, it doesn't work this time, This is expression bank_no_transation_date={"=aggr(count({<Customer_no=>}distinct [Transaction Type]),bank_no_transation_date)>=$(vLimit)"}

I have attached the qvw file. ould you please advise?

Labels (1)
3 Replies
tresB
Champion III
Champion III

Check attached qvw. Remove the Aggr() from your set expression section.

Not applicable
Author

Thanks. it works. I would also like to know in case aggr unction must be used, is there any alternative way of doing it apart from removing the aggr function?

tresB
Champion III
Champion III

Yes, you can use only() along with aggr() like:

bank_no_transation_date={"=Only({<Customer_no=>} aggr(count({<Customer_no=>}distinct [Transaction Type]),bank_no_transation_date))>=$(vLimit)"}


But, here too, I don't see the obviousness of using aggr().

I am really yet to find a case when aggr() usage is really needed in Set Analysis.