Making a Field to Calculate 'Yes' or 'No' Sales for last quarter

I am attempting to build a beastmode that gives me a value of ‘Yes’ if there is a “sale” in last quarter or a "no' if there isn't. Here is my code so far:
*‘End of Business Date’ acts as a current date function in our dataset.
The issue with this is that it does count all the rows from last quarter as a ‘Yes’, but if there is also a sale for the current quarter, it's counting it as a "No'.
As you can see all the 2023 dates have a “No” because I'm assuming it's only counting the latest date.
How can I change it so that it disregards the current date and directly looks at the last quarter date so that the function works properly?
Thanks!
Answers
-
There are several way to approach this, depending on how your dataset looks like and how you're configuring your card. Here is where using the
Graph By
option in the card can come a long way. You could use the date range by theCommitment Date
and Graph by Quarter, to know how many sales you happened on each quarter. Hope this helps (this will create an entry for each quarter).0 -
The Graph By wouldn't work in this case because I am trying to isolate the beastmode. There are other beastmodes that are all indicating different time brackets on that page.
0
Categories
- All Categories
- 2K Product Ideas
- 2K Ideas Exchange
- 1.6K Connect
- 1.3K Connectors
- 311 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 3.8K Transform
- 656 Datasets
- 115 SQL DataFlows
- 2.2K Magic ETL
- 811 Beast Mode
- 3.3K Visualize
- 2.5K Charting
- 80 App Studio
- 45 Variables
- 771 Automate
- 190 Apps
- 481 APIs & Domo Developer
- 77 Workflows
- 23 Code Engine
- 36 AI and Machine Learning
- 19 AI Chat
- AI Playground
- AI Projects and Models
- 17 Jupyter Workspaces
- 410 Distribute
- 120 Domo Everywhere
- 280 Scheduled Reports
- 10 Software Integrations
- 142 Manage
- 138 Governance & Security
- 8 Domo Community Gallery
- 48 Product Releases
- 12 Domo University
- 5.4K Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 114 Community Announcements
- 4.8K Archive