简体   繁体   English

在Tableau -Dashboard上应用过滤器而不迭代工作表

[英]Applying filters on a Tableau -Dashboard without iterating the sheets

Is there any way where we can directly apply filters on the tableau dashboard without iterating the sheets of the dashboard 有什么方法可以直接在Tableau仪表板上应用过滤器,而无需迭代仪表板的工作表

For now I am doing this way: 现在,我正在这样做:

worksheet = viz.getWorkbook().getActiveSheet().getWorksheets();

for (var i = 0; i< worksheet .length; i++) {
   worksheet[i].applyFilterAsync(name, value, 'ADD')
}

You can have a filter apply to all worksheets that use the same data source. 您可以将过滤器应用于所有使用相同数据源的工作表。 On a worksheet, right-click the field on the Filters shelf and select Apply to Worksheets > All Using This Data Source . 在工作表上,右键单击“过滤器”功能区上的字段,然后选择“ 应用于工作表”>“全部使用此数据源”

See the online help at https://onlinehelp.tableau.com/current/pro/desktop/en-us/filtering_global.html . 请参阅https://onlinehelp.tableau.com/current/pro/desktop/en-us/filtering_global.html上的联机帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM