Lost Business Beast Mode
Hello, I am trying to figure out if there is a way to identify clients that we no longer have business with.
Scenario: Client A and B has had closed orders with us in 2018-2020 us. Client A has had multiple orders in 2021, 2022, and 2023. Client B has no more orders after 2020. Is there a way to output Client B's information on a report?
There is a Closed Order Date field and I think we would need a way to compare it against itself.
Thank you!
Answers
-
You can filter based on the max closed date
CASE WHEN MAX(`closed_date`) FIXED (BY
client_id
) < CURRENT_DATE() - INTERVAL 2 YEAR THEN 'Stale' ELSE 'Active' ENDthis will find the max date for each client and allow you to filter for stale values
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**1 -
Sure. Create a card with a filter. Or create a report to identify clients with whom you no longer have business based on their order history.
MAX([Order Date]) OVER (PARTITION BY [ClientID]) as Latest_Order_DateFilter Clients with No Recent Orders: Once you have the latest order date for each client, you can filter the dataset to include only clients who haven't placed any orders after a certain date. For example, if you want to identify clients who haven't placed any orders since 2020, you would filter the dataset where the Latest_Order_Date is before 2021.
** Was this post helpful? Click Agree or Like below. **
** Did this solve your problem? Accept it as a solution! **0 -
@GrantSmith Hello Grant, thank you for the suggestion. I tried using your method, but when I try to filter my beast mode, there are no results. I used the following:
CASE WHEN MAX(Order Close Date) FIXED (BY ClientID) < CURRENT_DATE() - INTERVAL 2 YEAR THEN 'Stale' ELSE 'Active' END
0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 102 SQL DataFlows
- 626 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 753 Beast Mode
- 61 App Studio
- 41 Variables
- 692 Automate
- 177 Apps
- 456 APIs & Domo Developer
- 49 Workflows
- 10 DomoAI
- 38 Predict
- 16 Jupyter Workspaces
- 22 R & Python Tiles
- 398 Distribute
- 115 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 130 Manage
- 127 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 11 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 110 Community Announcements
- 4.8K Archive