Can I make a period over period pivot table with a dynamic date range?
I had a need to create a pivot table that has our % change ( this year sales - last year sales / last year sales). I was able to create an ETL that accomplishes this for any date this year. I am able to filter any date this year (MTD, QTD, YTD, etc.) and a beast mode will take the above formula to calculate my % change.
I am now having trouble taking this a step further. I now want to be able to look at any date, not just this year. For example if I want to look at Q4 2019, data from Q4 2018 is used for the formula. Is this possible? Thank you!
Here is a picture of my ETL:
Best Answers
-
There are a couple examples out there for you that are worth looking at:
@jaeW_at_Onyx has a nice video that walks through this:
https://www.youtube.com/watch?v=CDKNOmKClms&t=764s
@GrantSmith also has a nice write-up on how to do this:
Utilizing the Domo Date Dimension dataset is a key element to make this work.
**Check out my Domo Tips & Tricks Videos
**Make sure toany users posts that helped you.
**Please mark as accepted the ones who solved your issue.1 -
Hi @Pierce13
When I'm doing period over period comparisons I'll set up a custom date dimension with offsets. This way you can control how your dates are being compared and makes it a little easier and more manageable to calculate metrics like you're wanting. You can read up on this process here: https://dojo.domo.com/discussion/53481/a-more-flexible-way-to-do-period-over-period-comparisons#latest
I will also be leading a session on this during the January Virtual User Group meeting next week.
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**1
Answers
-
There are a couple examples out there for you that are worth looking at:
@jaeW_at_Onyx has a nice video that walks through this:
https://www.youtube.com/watch?v=CDKNOmKClms&t=764s
@GrantSmith also has a nice write-up on how to do this:
Utilizing the Domo Date Dimension dataset is a key element to make this work.
**Check out my Domo Tips & Tricks Videos
**Make sure toany users posts that helped you.
**Please mark as accepted the ones who solved your issue.1 -
Hi @Pierce13
When I'm doing period over period comparisons I'll set up a custom date dimension with offsets. This way you can control how your dates are being compared and makes it a little easier and more manageable to calculate metrics like you're wanting. You can read up on this process here: https://dojo.domo.com/discussion/53481/a-more-flexible-way-to-do-period-over-period-comparisons#latest
I will also be leading a session on this during the January Virtual User Group meeting next week.
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**1 -
Looks like @MarkSnodgrass is a faster typer than me. Gotta work on my stealthy quickness.
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**1 -
Thank you so much, I will check out the links.
0 -
Just an update: everything seems to be working great. Thank you again!
0
Categories
- 10.5K All Categories
- 8 Connect
- 918 Connectors
- 250 Workbench
- 472 Transform
- 1.7K Magic ETL
- 69 SQL DataFlows
- 477 Datasets
- 198 Visualize
- 254 Beast Mode
- 2.1K Charting
- 11 Variables
- 17 Automate
- 354 APIs & Domo Developer
- 89 Apps
- 3 Workflows
- 20 Predict
- 5 Jupyter Workspaces
- 15 R & Python Tiles
- 247 Distribute
- 63 Domo Everywhere
- 243 Scheduled Reports
- 21 Manage
- 42 Governance & Security
- 176 Product Ideas
- 1.2K Ideas Exchange
- 12 Community Forums
- 27 Getting Started
- 14 Community Member Introductions
- 55 Community News
- 4.5K Archive