Stacker Datasets
Our team uses a Stacker dataset that was created by Consultants to bring in metrics from multiple data sources. We have trouble updating the stacker whenever we need to change one of the inputs, whether it be updating the MySQL dataflows to bring in a new field or adding in an entirely new data source. We have to contact support any time we want to make a change. Is there any tutorial or guideline that exists out there on creating and maintaining a stacker?
Comments
-
We are looking in to what we can share and will get back to you shortly.
Thanks!
Dani
0 -
We don't currently have any public-facing documentation, but the basic structure of stacker is pretty simple.
Here are some basic guidelines to use when updating a stacker architecture:
- If new fields need to be added to an existing metric & dataset in stacker, it just requires an update to the webform configuration (updating the date, value, or dimension fields, depending on the field being added). The stacker dataflow does not need to be changed.
- The stacker dataflow will only need to be updated when new datasets are used for metrics in the stacker, and in that case, the only change will be to add the new dataset as an input. None of the dataflow code needs to change.
For example, if I need to add a "State" field to my "Leads" metric in a stacker, these are the steps I would follow:
- Make sure I know what the "State" field is in my input dataset listed in the "Datasource Name" column in the configuration webform. In this case, let's say the column is named "lead_state"
- Add the "State" field to my metric's row in the "Dimensions" column in the configuration webform using MySql syntax, something like: `lead_state` AS `State`. This will take whatever value is in the "lead_state" column in the input datasource and add it to the stacker output datasource in a new column named "State"
- Run the stacker dataflow. My new "State" column will be available to use in cards once the dataflow finishes
If I need to add a new metric from a new datasource, these are the steps I would follow:
- Find the stacker MySql dataflow, add the new input datasource to the input datasources in the dataflow, then save it. **This is the only change I would need to make to a stacker dataflow**
- Update the webform configuration with a new row, specifying a name for the metric I would like to capture, the name of the datasource the metric will come from in Domo (which we added to the dataflow in step 1), the date field that applies to that metric, the value column for that metric, any filters to apply for that metric (using MySql WHERE syntax), and any other columns from the input dataset that need to be included in the final dataset for that metric (using MySql SELECT syntax)
- Note: If the "Value Column" field is left blank, a "1" will be output in the "Amount_metric" column for that metric, as well as the general "amount" column for that metric. Otherwise, it will use the field specified.
- Note: The "Date Column" is required for the stacker dataflow to work properly
**Say “Thanks" by clicking the thumbs up in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"1
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 621 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 743 Beast Mode
- 58 App Studio
- 41 Variables
- 686 Automate
- 176 Apps
- 453 APIs & Domo Developer
- 47 Workflows
- 10 DomoAI
- 36 Predict
- 15 Jupyter Workspaces
- 21 R & Python Tiles
- 395 Distribute
- 113 Domo Everywhere
- 276 Scheduled Reports
- 6 Software Integrations
- 124 Manage
- 121 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive