Multi value comparison
Hi,
I am configuring a multi value comparison card.
I have Sales column which is being configured in Gauge Value.
In Comparison Value, I want to input the value of Sales Column itself but of previous year.
I want this comparison to be dynamic because on my dashboard I have dropdown filter (Year, Month, Quarter). So if I select any Year like 2023, this should be in gauge value and previous should become 2022.
I am unable to reference the Year dropdown which is configured on my dashboard. This dropdown is configured using a Year column available on my dataset.
Best Answer
-
@LearningNinja if you use Domo's built in date range/grain page filtering, this is handled for you. However, you can't specify the exact year. When you use a filter card, the rows are filtered down, so you would need your comparison values in a column to be able to reference them.
For example, here is a card which is defaulted to show the current year compared to the previous year. You can see that 2024 is 2.3k and all of 2023 is 5.39k.
If you select YTD using the built-in page filter, now we are comparing 2024 ytd to 2023 ytd for the same period.
I understand that you want to be able to select a year, and see the previous year as a comparison, but how would this work if a user also selects a quarter? Would you want to show the same quarter in the previous year? The previous quarter in the same year? Same question for month. If you're just wanting to always compare the same period, but in the previous year, you could achieve this as follows.
Set this up comparison periods in your ETL and stack those. This would basically look like this
Then in Analyzer, you could set up the following beast modes.
Gauge Value
SUM(case when compare_type = 'Current' then Column end)
Comparison
SUM(case when compare_type = '1 Year Ago' then Column end)
Then if you create your filters off of the column "compare_date", you drive interactions like this.
For example, here no comparison is selected.
Here we are comparing 2024 Q1 to 2023 Q1.
David Cunningham
** Was this post helpful? Click Agree š, Like šļø, or Awesome ā¤ļø below **
** Did this solve your problem? Accept it as a solution! āļø**1
Answers
-
@LearningNinja if you use Domo's built in date range/grain page filtering, this is handled for you. However, you can't specify the exact year. When you use a filter card, the rows are filtered down, so you would need your comparison values in a column to be able to reference them.
For example, here is a card which is defaulted to show the current year compared to the previous year. You can see that 2024 is 2.3k and all of 2023 is 5.39k.
If you select YTD using the built-in page filter, now we are comparing 2024 ytd to 2023 ytd for the same period.
I understand that you want to be able to select a year, and see the previous year as a comparison, but how would this work if a user also selects a quarter? Would you want to show the same quarter in the previous year? The previous quarter in the same year? Same question for month. If you're just wanting to always compare the same period, but in the previous year, you could achieve this as follows.
Set this up comparison periods in your ETL and stack those. This would basically look like this
Then in Analyzer, you could set up the following beast modes.
Gauge Value
SUM(case when compare_type = 'Current' then Column end)
Comparison
SUM(case when compare_type = '1 Year Ago' then Column end)
Then if you create your filters off of the column "compare_date", you drive interactions like this.
For example, here no comparison is selected.
Here we are comparing 2024 Q1 to 2023 Q1.
David Cunningham
** Was this post helpful? Click Agree š, Like šļø, or Awesome ā¤ļø below **
** Did this solve your problem? Accept it as a solution! āļø**1
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 616 Datasets
- 2.2K Magic ETL
- 3.8K Visualize
- 2.5K Charting
- 731 Beast Mode
- 55 App Studio
- 40 Variables
- 682 Automate
- 175 Apps
- 451 APIs & Domo Developer
- 46 Workflows
- 10 DomoAI
- 35 Predict
- 14 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 122 Manage
- 119 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 107 Community Announcements
- 4.8K Archive