Alert set up
Hi, I have a card that is filtered by product_id. I want to set up an alert, so that if the calculated rate for any product_id is less or equal to 10% then I get an alert. For example, there are 3 product_id 10, 11, 12, and the calculated rate is the summary number. I set up the alert, but it looks like I am getting the alert for the average rate of the 3 product ids. Is it possible to set up the alert to get notification for each product_id if the rate is less or equal than 10% using 1 card or do I need to create 3 cards? Thanks
Best Answer
-
Something like this. Obviously I just chose something random, but this is how you create a filtered alert on a dataset.
1
Answers
-
What you want to do is create a beast mode that creates a flag of 1 when your condition is met. Then use an aggregation of that beast mode in your summary number, and set the condition of the alert to be when > 1.
David Cunningham
** Was this post helpful? Click Agree 😀, Like 👍️, or Awesome ❤️ below **
** Did this solve your problem? Accept it as a solution! ✔️**0 -
Thanks @david_cunningham , I tried to create a beast mode but it is not working. Maybe the issue is my beast mode. Please see the beast mode below. I get 1 for everything, but it should be 0 because all the rates are greater than 10%.
case
when (case when `product_id` = 10 then `Rate_calc` else 0 end) <= 0.1
or (case when `product_id` = 11 then Rate_calc` else 0 end) <= 0.1
or (case when `product_id` = 12 then Rate_calc` else 0 end) <= 0.1
then 1
else 0 end
0 -
Vaco, if I wanted to do this, I would probably quickly create a dataset view that had the aggregated view you wanted, then create a dataset alert with filter rules. THen you could get an alert that says something like:
Product 3 has dropped below 10%, and is currently at 8%. Something far more descriptive.
If you want to fix your best mode, I'd ditch all the nested case statements. That isn't going to allow your alert to tell you which product is off though, which is what it sounds like you're after.0 -
thanks @DanHendriksen , I created a test dataset first to see if it works, but the alert setting is the same. In this case the aggregated column is profit margin, so I selected profit margin and then sum because I don't see the option for no aggregation. There is no option for me to select product_id. Please see the images below. thanks
0 -
I would use the options up higher in screenshot 1, and would do it around a value changing and a filter.
0 -
Hi @DanHendriksen , I don't understand your explanation. There is no place in alert to add a filter, and the alert is now on the dataset not the card. Thanks
0 -
Something like this. Obviously I just chose something random, but this is how you create a filtered alert on a dataset.
1 -
Great! thanks @DanHendriksen!
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