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.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 102 SQL DataFlows
- 626 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 753 Beast Mode
- 61 App Studio
- 41 Variables
- 692 Automate
- 177 Apps
- 456 APIs & Domo Developer
- 49 Workflows
- 10 DomoAI
- 38 Predict
- 16 Jupyter Workspaces
- 22 R & Python Tiles
- 398 Distribute
- 115 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 130 Manage
- 127 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 11 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 110 Community Announcements
- 4.8K Archive