Assistance With Creating a Bar Line Graph

Hello, I am trying to figure out how to create a line graph / bar line that will give me the variance change year over year based number of claims per year.
I am not sure if there is an easy way/setting in Domo to automatically create a percent change YoY for me, or if I need a beast mode to do this.
I have tried the following formula and put it in my Y-Axis, but it didn't seem to work.
(Case when Year(`Open Date`) = Year(curdate()) then `Claim Type` end / Case when Year(`Open Date`) = Year(curdate())-1 then `Claim Type`end) -1
Data:
I have an Open Date column and I am basically just counting the number of claim types each year. I am hopefully trying to get for example:
% Change from 2008->2009 from 665->818 ~ 23% increase..
2009->2010 ~ 818->511 ~ 37% decrease
Answers
-
Hi @SLam
I'd recommend reformatting your data with a date offset dimension dataset and using a beast mode to calculate the different between last year and this year. I've written about this before here: https://dojo.domo.com/main/discussion/53481/a-more-flexible-way-to-do-period-over-period-comparisons#latest
You can then use a Line + Bar chart to define the YoY % values.
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**1 -
Hello @GrantSmith , thank you for the information.
Am I able to skip to the section below:
Or will I need to complete the above steps in order to complete the steps in the screenshot? I do not have access to MagicETL and MySQL to do these steps.
0
Categories
- All Categories
- Product Ideas
- 2.1K Ideas Exchange
- Data Connections
- 1.3K Connectors
- 309 Workbench
- 17 Cloud Integrations
- Data & ETL
- 2.3K Magic ETL
- 120 SQL DataFlows
- 667 Datasets
- Visualize & Apps
- 90 App Studio
- 198 Pro-code Components
- 2.6K Charting & Analyzer
- 873 Calculations & Variables (Beast Mode)
- AI & Data science
- 23 Domo AI & AI Chat
- 4 Managing AI
- 18 Jupyter Workspaces
- Automate
- 122 Workflows
- Alerts
- Distribute
- 118 Domo Everywhere
- 284 Reporting
- Manage
- 145 Governance & Security
- 489 APIs
- 11 Add-ins & Plugins
- 13 Domo Community Gallery
- 49 Product Releases
- 13 Domo University
- Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 118 Community Announcements
- 5K Archive