Calculate the number of days that an event take place
I have a giant data set with Order number, profit, coupons, campaigns etc.
I have categorized each order's promotion campaign.
Now I want to calculate the profit per day for each campaign so I can make effective comparisons, but I don't really know how to use beast mode for this. I have a column of order data as well. I have a rough idea of either count(distinct(order date)) for every specific campaign category or use datediff?
Could anyonle help me out please?
Sample short verson of my data:
Order Number Order Date Promotion Campaign Profit
123456 05/10/2018 Summer Cool $123
14567 05/12/2018 Summer Cool $258
I'm not sure you'd even need Beast Mode. If you say start with a Table card. Your columns would be Order Date, Promotion Campaign, and Sum(Profit) and/or Avg(Profit). By just removing the details of Order Number you'd get the proper aggregations you'd be looking for. Then if those numbers match to what you were looking for I'd probably change it up to a more visually pleasing card like a Grouped Bar chart or something (depending on how many campaigns you run).
Hope that helps.0
Thanks for your quick response.
I tried your method to have a table of those three columns. The problem is that I have different number of days for each campaign plus on each day there are different number of orders placed.
The result table only shows the average profit per order each day (sum(profits)/# order).
I am looking for the average profit per day produced by the campaign overall (sum(profits)/# of days).0
I added subtotal rows and now it calculates what I wanted.
But do you know how I could extract this info out to build other cards?
I will also play around with it.
Then you could just leave out date and your fields be Promotion Campaign, and Sum(Profit) and/or Avg(Profit). You could put in a column for Max(date) and Min(date) so you know what range you're looking at.
You can't export subtotals out of the card. If you're left to only seeing what you want in the total or subtotals...you may want to think about a non-table card. Those may work out better for you.
I hope that helps.
Please like for thanks.0
- 7.7K All Categories
- 2 Connect
- 918 Connectors
- 244 Workbench
- 477 Transform
- 1.8K Magic ETL
- 60 SQL DataFlows
- 446 Datasets
- 35 Visualize
- 198 Beast Mode
- 2K Charting
- 8 Variables
- 16 Cards, Dashboards, Stories
- 1 Automate
- 348 APIs & Domo Developer
- 82 Apps
- 14 Predict
- 3 Jupyter Workspaces
- 11 R & Python Tiles
- 241 Distribute
- 59 Domo Everywhere
- 241 Scheduled Reports
- 15 Manage
- 36 Governance & Security
- 26 Product Ideas
- 1.1K Ideas Exchange
- Community Forums
- 15 Getting Started
- 1 Community Member Introductions
- 49 Community News
- 18 Event Recordings
- 579 日本支部