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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
morenoju
Partner - Specialist
Partner - Specialist

Show all values of a dimension on a map layer regardless of current selections

Hi folks,

I have a table with ids and geometries: item_id, location

I want to show all items on a map regardless of the user selection on item_id. I thought I could do this by configuring the dimension as only({1}item_id) but I get an invalid dimension error.

I've thought of using alternate states, but then if the user picks an item from the map, I can't see the selection in other charts.

How can I show all items on the map regardless of the current selections?

Labels (1)
8 Replies
JordyWegman
Partner - Master
Partner - Master

Hi Morenoju,

I think the only way is to disable the selections, but you can't overrule selections being made in the other objects. The current map will always show it.

Jordy

Climber

Work smarter, not harder
morenoju
Partner - Specialist
Partner - Specialist
Author

Thanks Jordy. But isn't there a way to show all items on the map layer regardless the selections being made in other objects? This is something we often do in tables and charts.

I tried to use an alternate state

=only({AlternateState2}[item_id])

But it also gives invalid dimension error.

@Patric_Nordstrom  , maybe you have a visualization trick to achieve this? 🙂

Thanks!

morenoju
Partner - Specialist
Partner - Specialist
Author

For now, what I'm going to be doing is to concatenate the locations as a multistring:

LOAD
0 as item_id,
'[' & concat(location,',') & ']' as location,
RESIDENT items;

Patric_Nordstrom
Employee
Employee

Yes, the easiest way is to use set analysis to ignore selections. Make sure the set expression is on all the measures: location, color, label in the layer etc etc.

Dimension = item

Location = only({1} location)

Thanks,

Patric

 

katierusso
Contributor II
Contributor II

This worked perfect for me.  Location = only({1} location)  was what I was missing. Thank you.

VaishnaviMogal11
Partner - Contributor III
Partner - Contributor III

Hi, after using this Location = only({1} location), I am not able to do circle or lasso selection on map. How can I resolve this.

Thank you!

katierusso
Contributor II
Contributor II

Things I would inspect: Is the Disable selections box in the layer properties checked?  (Properties of the layer under General). 

Is the selection method in the Map Settings set to none? 

Not sure what else would cause this. 

VaishnaviMogal11
Partner - Contributor III
Partner - Contributor III

Hi,

Disable selections box is not checked and the selection method in the Map Settings is also not none.

I am using lat and lon in location and using expression as lat= only({1} lat) and lon= only({1} lon).