Skip to content

This is the source code for the python file that adds a DEFINITIONS datasource via drag and drop

Notifications You must be signed in to change notification settings

JoeLuker/TableauCookbook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TableauCookbook

This is the source code for the python project that adds a DEFINITIONS datasource via drag and drop

It uses PyInstaller to create the TableauModifier.EXE file.

The underlying code works by

  1. Taking in a Workbook (twb or twbx) using sys.argv[1]
  2. Using the tableaudocumentapi library to scan the workbook and create an array with all fields in use
  3. Writing a query that uses the newly created array as part of it's WHERE statement
  4. Using the tableau_tools libarary to create a datasource called "DEFINITIONS" using the query
  5. Create a copy of the original workbook called "Modified Workbook" and add the "DEFINITIONS" datasource to it.

Known Bugs:

About

This is the source code for the python file that adds a DEFINITIONS datasource via drag and drop

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published