Giter VIP home page Giter VIP logo

tableau_dashboard_profiler's Introduction

๐Ÿง Tableau Dashboard Profiler ๐Ÿ•ต๏ธโ€โ™€๏ธ

Tableau Dashboard Profiler is your secret agent for analyzing Tableau workbook files. It dives into your .twbx files and retrieves field-level details, helping you understand the structure and content of your dashboards.

๐Ÿ’ผ Requirements

Before you start, make sure you've installed the necessary Python packages. You can do this by running the following command in your terminal:

pip install -r requirements.txt

๐Ÿš€ Usage

Follow these steps to analyze your Tableau workbooks:

  1. Import the DashboardAnalyzer class from tableau_dashboard_profiler.py.
  2. Initialize a DashboardAnalyzer instance with the path to the directory or file containing your .twbx Tableau workbooks.
  3. Call the analyze method on the DashboardAnalyzer instance.
  4. Optionally, provide an output path and a create_dir flag. The script will save the output CSV files in this directory. If the directory doesn't exist, setting create_dir to True will create it.
  5. If you set return_concat to True when calling analyze, the method will return a DataFrame with the analysis results.

Here's an example:

from tableau_dashboard_profiler import DashboardAnalyzer

input_path = r'/path/to/your/workbooks'
output_path = r'/path/to/output/directory'

# Initialize the analyzer
analyzer = DashboardAnalyzer(input_path, output_path, create_dir=True)

# Analyze the workbooks and get a DataFrame of the results
df = analyzer.analyze(return_concat=True)

# See what the analyzer found
if df is not None:
    print(df)

๐ŸŽ Output

The analyze method saves a CSV file for each analyzed .twbx workbook in the specified output directory. Each CSV file contains the following columns:

  • 'Dashboard Name'
  • 'Worksheet Name'
  • 'Field Name'
  • 'Field Calculation'
  • 'Field Type'
  • 'Field Role'
  • 'Field Aggregation'

If return_concat is set to True, the analyze method also returns a DataFrame that contains all the results combined.

Happy Profiling! ๐Ÿ•ต๏ธโ€โ™€๏ธ๐Ÿ”๐Ÿ“Š


tableau_dashboard_profiler's People

Contributors

wchan757 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.