Select to view content in your preferred language

How to filter data on embedded dashboard

1871
4
03-27-2024 09:11 AM
Labels (1)
DebHSF
by
Regular Contributor

I have 3 Dashboards embedded into individual Views in an Experience Builder app. (Had to use Dashboards rather than ExB to filter the data as I wanted, but that's a different issue!) All the dashboards and the ExB are pointing towards the same single dataset.

I would like to be able to use the ExB Filter widget to filter the dashboards to show data for certain areas - using an attribute for the Area_code in the dataset. Is this possible? 

I have set up URL parameters in the dashboards and added that to the ExB embed code, but I'm not sure where to go from there. From what I can see, the ExB Filter widget does not pick up the embedded dashboards as a target widget, so there is no option to add an Action to the Filter. Any ideas or alternative ways round it welcome.

I know an option is to use category selectors in the dashboards to do the filtering there, but users would then have to re-select their area when switching between the Views.

0 Kudos
4 Replies
ChristopherCounsell
MVP Regular Contributor

It's not possible to configure the filters to apply to embedded apps directly; there's no UI for this. You have to manually pass the values into dynamic url parameters within the embed widget. So as the dynamic value changes, the embedded content URL changes, applying the filter. There's an example of that here:

https://community.esri.com/t5/arcgis-experience-builder-questions/changing-filters-with-url-paramete...

Not all parameters are supported. You'd have to look at it and apply it for each widget:

https://doc.arcgis.com/en/experience-builder/latest/build-apps/url-parameters.htm

https://doc.arcgis.com/en/dashboards/latest/create-and-share/url-parameters.htm

Personally I'd advocate for just having a second web app, instead of embedding everything into one. Maybe a simple setup is OK but at some point things just get difficult or hit a lot of limitations. e.g. can't export from embedded content. Better to make separate, purposeful web apps, over trying to have it all on the one page.

0 Kudos
usace_sam_rd3
Emerging Contributor

On the Embed widget, you can set a connect to the same dataset/view as the filter.  You then configure the embedded dashboard to set your URL parameter, and click on the little database icon to pull the field your need for your parameter (in my example the field is "Scenario_Alias").  When the filter is applied, the URL Parameter value will be updated.

 

0 Kudos
DebHSF
by
Regular Contributor

@usace_sam_rd3 I'm struggling to get this to work. How is the Chart Filter view set up? Do you have a separate Filter widget set up too?

0 Kudos
usace_sam_rd3
Emerging Contributor

@DebHSF - do you know an embedded operations dashboard with a chart? Can you attached a screenshot to see what you are trying to connect?

0 Kudos