Qlik Community

New to Qlik Sense

If you’re new to Qlik Sense, start with this Discussion Board and get up-to-speed quickly.

Announcements
Tell us which business and trade publications you read most regularly: RESPOND 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)
4 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