Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
 
					
				
		
 morenoju
		
			morenoju
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		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?
 JordyWegman
		
			JordyWegman
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		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
 
					
				
		
 morenoju
		
			morenoju
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		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
		
			morenoju
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		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_Nordstro
		
			Patric_NordstroYes, 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
		
			katierusso
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		This worked perfect for me. Location = only({1} location) was what I was missing. Thank you.
 VaishnaviMogal1
		
			VaishnaviMogal1Hi, 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
		
			katierusso
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		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.
 VaishnaviMogal1
		
			VaishnaviMogal1Hi,
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).
