Skip to main content
Solved

Filters on custom view/page but have one visual ignore a particular selection

  • Jul 15, 2025 8:59 AM UTC
  • 2 replies
  • 39 views
  • Translate All

danny.oneill
Forum|alt.badge.img+2

I have a page:

https://cityobservatory.birmingham.gov.uk/explore/dataset/test-emergency-admissions-for-copd-icp-outcomes-framework-birmingham-and-solihull-wards/insight

Which has 4 filters on that I want t o affect the majority of the visuals. However, for the map I want this to ignore anything made to the 3rd filter “area_name” but respect all other filters. How can I achieve this?

I have tried the following either as its own context or as part of the main one at the start of the page but it just wont listen

<ods-dataset-context context="mapctx"
mapctx-dataset="{{ ctx.dataset.datasetid }}"
mapctx-parameters="{
'refine.date'= ctx.parameters['refine.date'],
'refine.time_period_range'= ctx.parameters['refine.time_period_range'],
'refine.ethnicity'= ctx.parameters['refine.ethnicity'],
'refine.imd':'ALL'
}">

 

Best answer by danny.oneill

Thomas in ODS sorted me out. I needed to put the part which passes the filters into the new context AFTER my visual. 

ChatGPT gave me the right code, just in the wrong place. All sorted now.

View original

2 replies

Hello Danny,

It seems that the code is working as you want, thanks to the AngularJs expressions you implemented, can you confirm that?

Best,

Manon

Translate

danny.oneill
Forum|alt.badge.img+2
  • Author
  • Guardian
  • Answer
  • Jul 23, 2025 2:30 PM UTC

Thomas in ODS sorted me out. I needed to put the part which passes the filters into the new context AFTER my visual. 

ChatGPT gave me the right code, just in the wrong place. All sorted now.

Translate