Running Total
Hello, I need help.
Wondering why my running total is failing. I have the logic set up in the dataflow. The card returns the the correct value in months where there was production but for months with no activity, the value is skipped but returns the right value in the subsequent period. How do I resolve this?
Product | mon1 | mon2 | mon3 | mon4 | mon5 | mon6 | |
---|---|---|---|---|---|---|---|
xxxx | sales | 0 | 6 | 2 | 4 | 3 | 2 |
dbSize | 0 | 6 | 8 | 12 | 15 | 17 | |
xxxx | sales | 1 | 2 | 3 | 3 | 4 | 1 |
dbSize | 1 | 3 | 6 | 9 | 13 | 14 | |
xxxx | sales | 2 | 3 | 3 | 5 | 0 | 7 |
dbSize | 2 | 5 | 8 | 13 | 0 | 20 | |
Best Answers
-
In your ETL, before you do your running total in the rank & window tile, you are going to need to join your data to all months that exist. This way, there will be no gaps and you will be able to create a running total for each month.
**Check out my Domo Tips & Tricks Videos
**Make sure to any users posts that helped you.
**Please mark as accepted the ones who solved your issue.1 -
Consider using coalesce for months with no value. Coalesce lets us get a value such as zero, when the condition is null.
** Was this post helpful? Click Agree or Like below. **
** Did this solve your problem? Accept it as a solution! **0
Answers
-
In your ETL, before you do your running total in the rank & window tile, you are going to need to join your data to all months that exist. This way, there will be no gaps and you will be able to create a running total for each month.
**Check out my Domo Tips & Tricks Videos
**Make sure to any users posts that helped you.
**Please mark as accepted the ones who solved your issue.1 -
Consider using coalesce for months with no value. Coalesce lets us get a value such as zero, when the condition is null.
** Was this post helpful? Click Agree or Like below. **
** Did this solve your problem? Accept it as a solution! **0
Categories
- All Categories
- 1.5K Product Ideas
- 1.5K Ideas Exchange
- 1.4K Connect
- 1.1K Connectors
- 279 Workbench
- 4 Cloud Amplifier
- 4 Federated
- 2.7K Transform
- 89 SQL DataFlows
- 562 Datasets
- 2K Magic ETL
- 3.4K Visualize
- 2.3K Charting
- 584 Beast Mode
- 13 App Studio
- 28 Variables
- 585 Automate
- 142 Apps
- 415 APIs & Domo Developer
- 27 Workflows
- 1 DomoAI
- 28 Predict
- 12 Jupyter Workspaces
- 16 R & Python Tiles
- 360 Distribute
- 98 Domo Everywhere
- 260 Scheduled Reports
- 2 Software Integrations
- 94 Manage
- 91 Governance & Security
- 9 Product Release Questions
- Community Forums
- 37 Getting Started
- 28 Community Member Introductions
- 89 Community Announcements
- 4.8K Archive