document-api-python icon indicating copy to clipboard operation
document-api-python copied to clipboard

Datasource Filters

Open benlower opened this issue 9 years ago • 3 comments

Enable updating. These are in 'groupfilter' node.

/cc @DataRoberts

benlower avatar Jun 28 '16 23:06 benlower

Nothing's worse than republishing a workbook that was originally secured with a data source filter and NOT having it there. This just automates it. Here's an example: https://github.com/DataRoberts/Tableau/blob/master/TableauDesktop/TsDataSourceFilters.ps1

MikeRobertsPS avatar Jun 29 '16 19:06 MikeRobertsPS

I have a builder for this implemented here [https://github.com/bryantbhowell/tableau_tools/blob/master/tableau_documents/tableau_datasource_generator.py] . My mechanism is to hold all of the potential filters to create in a queue until you generate the final XML. There are three discrete types of filters which each have their own options / manifestations.

Most of this is explored here [https://tableauandbehold.com/2016/06/29/defining-a-tableau-data-source-programmatically/].

Haven't gone into making existing filters editable yet -- possibly load from the original, throw it away, then recreate using the builder might be the most effective strategy?

bryanthowell-tableau avatar Sep 20 '16 19:09 bryanthowell-tableau

The ability to add userfilters would be amazing.

graham-macleod avatar Oct 07 '16 06:10 graham-macleod