Week over week metrics
Hi,
I want to show Week over week metrics (Column) in my dataset.
I have used date ranges at weekly level and showing visits metric in another column in a bar chart.
Now, I want to add a line showing Week over week variation.
I have read the other posts/solutions and know it has to be with a self join only and within Magic ETL - but was facing some issues in implementing the same.
The closest was this post in the last answer by McSQL
Any approach/feeback/examples would be highly appreciated.
Comments
-
Similar to McSQL, I've done the same thing but flattened: join the data on itself but shifted by a week (or month, or whatever the business need is), then output "Vists Last Period" as a new column next to "Visits This Period". Seemingly identical to the first dataset but with the new last period column.
Then your % change beast mode looks something like:
(`Visits This Period` - `Visits Last Period`) / `Visits Last Period`
Your card would then be built with the date as the X Axis, your "Visits This Period" as the first Y Axis and your % change beast mode as the first series (second value on Y Axis). Furthermore, you could do three metrics (which is what I did). One symbol for % change, one bar for this period, and one bar for last period.
Aaron
MajorDomo @ Merit Medical
**Say "Thanks" by clicking the heart in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"1 -
@AS Thanks!
I was just trying this self join and for shifting the data by a day - I am trying to create a new column "Date 2" which is equal to the "Actual date + 1" and then join this with the original dataset on Date only.
This will give me original Visits and one day prior visits, which can then be used to get Week over week metrics in card building.
However, I am just not able to create "Date 2" column and found no posts with creation of new calculated columns in datasets (except constants) - without sql use.
Also, is there any way to convert data to weekly and get WoW metrics in magic ETL only?
Any approach/suggestions will be highly appreciated!
0 -
If your data is by transaction, I'd first aggregate it to daily by whatever dimensions you need. Then do a "Date Operations" column to create a new data, taking your date column and adding negative days (like -7 for last week's data). Then add a join transform to join the "daily aggregate" and the "daily aggregate with prior date" transforms, using the date and dimension columns as your join conditions. Then you have an output dataset that, for every dimension combination, has a column for daily data as well as the prior time period's daily data.
See attachments for example. I always do this by SQL dataflow but you might try something like what I've shown in the attachments. It should give you some ideas, at least.
Aaron
MajorDomo @ Merit Medical
**Say "Thanks" by clicking the heart in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"0 -
0
-
That may not be an article everyone has access to, @DaniBoy.
But I wouldn't be surprised if some kind of PoP approach is documented somewhere.
Aaron
MajorDomo @ Merit Medical
**Say "Thanks" by clicking the heart in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"0 -
Thanks @AS!
The Help center is now accessile to all customer who have a Domo license. It can be accessed easily from the top right of any Dojo page or by going to the following url: https://knowledge.domo.com/.
Domo customers will need to use their Domo login credentials to access the wealth of articles.
Regards,
Dani
0 -
@DaniBoy, this is what I see when I click on your link and I notice the URL says it's a beta feature:
Thre is also this article in the knowledge base, which goes over the SQL version:
https://knowledge.domo.com/Prepare/DataFlow_Tips_and_Tricks/Period_over_Period
Aaron
MajorDomo @ Merit Medical
**Say "Thanks" by clicking the heart in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"0 -
Thanks @AS!
I updated the thread and this is the better link.
https://knowledge.domo.com/Prepare/DataFlow_Tips_and_Tricks/Period_over_Period
Let me know if this works ok.
Regards,
Dani
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
- 754 Beast Mode
- 61 App Studio
- 41 Variables
- 693 Automate
- 178 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