tableau / embedding-api-v3-guide

migration guide for moving to embedding api v3
MIT License
27 stars 9 forks source link

applyFilterAsync - Include option for context filtering #36

Open philperrin opened 1 year ago

philperrin commented 1 year ago

Ideally would like an option to include an option to apply a filter as a context filter, rather than only limited to a normal filter. I think this could be implemented like the "filterOptions: isExcludeMode" process - where the filter is specified.

philperrin commented 1 year ago

The purpose of this is to provide the multi-layered filtering as found in some dashboards. One specific example is: If I need to view an analysis of the top 10 account values within each state (or some category) that an end user may select. There are multiple ways to approach this, but a simple one is to make the state a Context Filter, and then use a Top N filter based on account value. By putting the state field on a context filter, Tableau will filter down to the selected states first, then after that the Top N filter would be applied. Again - there are other approaches that could be taken to solve for this, but I think the ability to set a context filter would help make this a more robust tool.