Category / Section
How to Perform Filtering in IFrame Embedding Using the Query Parameter 'embed_datasource_filter'?
Published:
In IFrame embedding, it is possible to implement filtering using the embed_datasource_filter
query parameter. This allows for filtering based on either URL parameters or dashboard parameters.
Steps to use the query parameter ‘embed_datasource_filter’ for filtering purposes:
To utilize this feature, you can construct your IFrame source URL with the appropriate parameters.
Reference dashboard image without passing parameters, which demonstrates all the countries and products in the highlighted widgets.
Here’s an example of how to set it up:
<iframe src='http://localhost:53623/bi/site/site1/dashboards/b1c1d38a-4fac-41c5-a38a-95fa3e2cc767/Sales/Sales%20Analysis%20Dashboard?isembed=true&embed_datasource_filter=&&Product=chai&Country=UK' id='dashboard-frame' width='100%' height='600px' allowfullscreen frameborder='0'></iframe>
The dashboard image includes filter parameters that demonstrate the highlighted widgets filtered by the specific country (UK) and product (Chai), based on the values passed in the URL: '&embed_datasource_filter=&&Product=chai&Country=UK'
.
Important Notes
- The
embed_datasource_filter
parameter is specifically applicable to IFrame embedding of dashboards. - This method does not apply to IFrame full server embedding.
- Be aware that the values passed through this method will not be encrypted, so sensitive information should be handled with caution.