Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
satishkurra
Specialist II
Specialist II

QlikMaps: Calculated dimension, performance issue

Hi

I'm using the below calculated dimension in QlikMaps extension object. This expression seems to be resource heavy and taking lot of time to display the map on object selection.

Can someone help me in resolving this issue.

Note: I don't want to restrict it in back end, as i need all other data to display in other visualization.

Expression:

=Aggr(Only({State={'NewYork'},County={'DUTCHESS','ORANGE','SULLIVAN','WESTCHESTER'}>} ZipBoundary), ZipBoundary)


Thanks

Satish

1 Solution

Accepted Solutions
marcus_sommer

It meant to perform a little if-loop within the load-statement, something like this:

Load

...

     if(State='NewYork' and match(County, 'DUTCHESS','ORANGE','SULLIVAN','WESTCHESTER'), 1,0) as MapFlag

...


- Marcus

View solution in original post

3 Replies
marcus_sommer

Your expression is static - not related to selections,only fixed values - therefore I suggest (especially if you have serious performance problems) to flag this within the script so that you could use something like this:

if(MapFlag = 1, ZipBoundary)


even this will be faster then your strings within the aggr:


=Aggr(Only({MapFlag={1}>} ZipBoundary), ZipBoundary)


- Marcus

satishkurra
Specialist II
Specialist II
Author

What is MapFlag here?

I mean how do i get that

Thanks

marcus_sommer

It meant to perform a little if-loop within the load-statement, something like this:

Load

...

     if(State='NewYork' and match(County, 'DUTCHESS','ORANGE','SULLIVAN','WESTCHESTER'), 1,0) as MapFlag

...


- Marcus