Git Product home page Git Product logo

extension-quick-what-if's Introduction

Quick What-If

A dashboard extension that allows you to create a list of controllable inputs based on values of a dimension for quick what-if analysis.

What it does

Imagine, you're a manager at Superstore and you're using Tableau to do a simple what-if analysis on sales. You want to be able to see how sales would change based on a percentage increase or decrease. But, you want to do this analysis at the product category level with different percentages for each. Well, that would require you to create a parameter for each and every category and write a long calculation to match them up. Then if a new category gets added you need to go back and add another parameter and update your calculations. Who has time for that!? Instead, with the Quick What-If extension, you simply create one parameter and one calculation, and then you get a list of controllable inputs for each category to do your what-if analysis automatically!

How to use it

  1. Before bringing in the extension make sure you have at least one worksheet on the dashboard that contains the dimension you want to pull values from. For example, if you wanted to do what-if analysis on the product categories like in the above image, you would need a worksheet on your dashboard with the "Category" dimension.
  2. Next make a new string parameter that accepts all values. This will be your storage parameter where all input values are kept.
  3. Now that your dashboard is set up, drag in a new extension object to your dashboard and select the Quick What-If extension.
  4. In the configuration pop up select your storage parameter (which you made in step 2) and choose which worksheet and field you want to generate a list of inputs for.
  5. Select how and when you want the inputs displayed within the options (more details below).
  6. Save the configuration.
  7. Create a new calculation with the following formula: {FIXED [Dimension]: MIN(FLOAT(REGEXP_EXTRACT([Parameter], [Dimension]+"\|(-?\d*\.?\d*)")))} where Dimension is the field you want to generate an input for and Parameter is your parameter.
  8. Add this calculation to a view with your dimension.
  9. Adjust the inputs in the extension to do your what-if analysis!

Options

  1. Location of inputs: Where do you want the inputs to show up? You can choose between a modal pop-up window or inline on the dashboard.
  2. Inputs to display: Do you want to see all inputs or only the ones for the items you selected?
  3. Trigger: How do you want to trigger the inputs to show up? When you click on a mark or based on a button on the dashboard.
  4. Unit label: Choose a label to display above the inputs to let users know what unit the numbers are.
  5. Button text: If you are using the button option you can change the words found on it.

Note: If you are using options that eliminate the need for the inline dashboard zone to be displayed you can simply hide the extension by floating it and making it 1x1 pixel. You can always find it later in the layout pane.

How to install for local use

  1. Make sure you have Node.js installed.
  2. Clone or download and unzip this repository. Open the command line to the extension-quick-what-if master folder and run npm install to install the node modules.
  3. In the command line run npm run build to build the extension.
  4. Copy the files in the dist folder to your web server.
  5. Update the existing or create a new manifest file (.trex) to point to the URL where you are hosting the extension.

Support

If you have questions about the extension or found a bug please open a new issue.

extension-quick-what-if's People

Contributors

keshiarose avatar benlower 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.