How to Make a Card of Total Ratio and Recent 1 Year Ratio
Hi There,
I need DOMO Dojo expertise to help me on create 2 card using Beastmode calculation.
I have a basic data to create this 2 card:
- Month date (201706, 201707, 20178 etc)
- Product name, 2 Type: Panel & MB
- Monthly defect qty
- Cumulative sales
Idea:
The Beastmode I should create is:
- Cumulative Monthly Defect Qty
- Total Ratio
- Recent 1 Yr Cumulative sales
- Recent 1 Yr Monthly defect qty
- Recent 1 Yr Cumulative Monthly Defect Qty
- Recent 1 Yr Ratio
Card Created:
- I need to create 2 card which is only 1 product
- Combination of 2 product
- I could make this kind of trend in excel, but I'm not able to make in DOMO, due to my limitation of Beastmode calculation since I'm not a programmer student.
- Besides, I have attached the excel file for better understanding on what kind of card I would like to get.
Answers
-
0
-
@LMS ,
in the future, please be specific about what you're unable to accomplish (other than 'everything') it seems like you're asking us to provide consulting services -- which i don't think is a reasonable ask from the community site in my opinion.
you can calculate cumulative sales in your ETL or you can do it in Analyzer and avoid pre-aggregation.
to calculate cumulative sum you'll need to use window functions. you'll need your CSM to enable the feature.
you may want to partition by Product depending on your requirements
sum(sum(amount)) over ( partition by product order by date asc)
if you've never seen window functions before, here's a tutorial video. it doesn't specifically cover cumulative sum, but window functions are a set of advanced functions that you'll come across frequently.
to calculate permutations of this_Value_one_year_ago or rolling_12_months, instead of building complicated beast modes, I would add a column in ETL that counts the number of months, currentMonth_lag from the current_date() , so Feb 21 would be 0, Jan would be 1, Dec 2020 would be 2 , March 21 would be -1 April 21 would be -2.
That way you can use
case when currentMonth_Lag = 12 then ... end
etc.
Please be specific what your problem is if you have follow up questions. good luck.
Jae Wilson
Check out my 🎥 Domo Training YouTube Channel 👨💻
**Say "Thanks" by clicking the ❤️ in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"0 -
Thank you for the suggested card building, although this is not the card i wanted, but i will try to figure out myself.
0
Categories
- All Categories
- 1.7K Product Ideas
- 1.7K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 292 Workbench
- 4 Cloud Amplifier
- 8 Federated
- 2.8K Transform
- 95 SQL DataFlows
- 600 Datasets
- 2.1K Magic ETL
- 3.7K Visualize
- 2.4K Charting
- 685 Beast Mode
- 43 App Studio
- 38 Variables
- 655 Automate
- 170 Apps
- 438 APIs & Domo Developer
- 42 Workflows
- 5 DomoAI
- 32 Predict
- 12 Jupyter Workspaces
- 20 R & Python Tiles
- 383 Distribute
- 110 Domo Everywhere
- 267 Scheduled Reports
- 6 Software Integrations
- 111 Manage
- 108 Governance & Security
- 8 Domo University
- 25 Product Releases
- Community Forums
- 39 Getting Started
- 29 Community Member Introductions
- 98 Community Announcements
- Domo Community Gallery
- 4.8K Archive