beast mode for specific date range
CASE WHEN `end_date__c` >= '1/01/2021' and `end_date__c` <= '12/31/2021' then `2021` else 0 end
getting an error message
Calculation Error : A column in this calculation did not exist.
Answers
-
@kodonnellLT is 2021 a column or is it in single quotes? Try removing any column fields are re-adding them by double clicking from the column list.
**If this answer solved your problem be sure to like it and accept it as a solution!
1 -
You're using backticks (`) for your 2021 value and not a single quote to denote it's a string (')
CASE WHEN `end_date__c` >= '1/01/2021' and `end_date__c` <= '12/31/2021' then '2021' else '0' end
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**1 -
I'm assuming 2021 is a value and not a column. If so, you put single tics around it, which domo thinks is a column called 2021. Remove the tics around 2021 and it should work. Alternatively, you could rewrite it as this:
CASE WHEN YEAR(DATE(`end_date__c`)) = 2021 THEN 2021 ELSE 0 END
**Check out my Domo Tips & Tricks Videos
**Make sure to any users posts that helped you.
**Please mark as accepted the ones who solved your issue.1 -
Thank you for your help. Now I'm trying to find the results of a survey only for the dates of 2021
CASE WHEN `end_date__c` >= '1/01/2021' and `end_date__c` <= '12/31/2021' then `answer value` *1' else '0' end
0
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