Best Of
Domopalooza 2023 Call for Presenters
We’re talking about the future of data and the ways innovative companies like yours are meeting the needs of modern data consumers.
It’s time for you to be a part of the story! We want to hear how you’re putting data to work to get things done and drive results with Domo. Tell us how you’ve used Domo to transform your business, what you are doing to help your organization get data into the hands of more people, or how you are leveraging data to improve business outcomes. Share technical tips and tricks, lessons learned, or what’s helped you succeed.
Apply to present HERE. Applications will be open until December 2nd.
Re: Alerts - Notify when Text Changes
What you could do is use a recursive ETL to store the current value that's being updated and the old value that was in the former dataset. Then compare the two, if they're different you can set a flag on the record saying it changed and then alert on that specific value.
Re: Trying to Count the number of Appointments in my data
@mhouston Bingo. Using AND not OR, and using an equal instead of like both fixed the issue and corrected the count. Thank you both @Billobi and @mhouston for helping!
Cwal
Re: Trying to Count the number of Appointments in my data
@Cwal it looks like the problem is in the SQL syntax. I think I understand you are trying to exclude both values 'No Code0Bay 0' and 'No Code0NoBay'? So your SQL should be AND, not OR.
Also a side question - why are you using the like operator without any wild cards? I think you could just use an equal.
I'd rewrite your beast mode:
COUNT(DISTINCT
CASE WHEN concat(`Appt Text`, `Bay Code`, `Bay Text`)
<> 'No Code0NoBay' and concat(`Appt Text`, `Bay Code`, `Bay Text`) <> 'No Code0Bay 0' then `Invoice #`
end)
mhouston
Re: Stats for number of Cards per Page
Thank you @MichelleH and @mhouston You both answered my question. I as able to get the data from Domo Governance and then join the datasets to get what I needed. Thanks for your help
Re: Trying to Count the number of Appointments in my data
So if "Invoices marked 'No Code' in Appt Text, '0' in Bay Code, and 'No Bay' in Bay Text indicate that that invoice did not have an appointment", does that mean that all other invoices have an appointment? If so I'd just do an evaluation against those specific contents to give you a unique count of the 'Invoice #' field.
COUNT(DISTINCT CASE WHEN CONCAT('Appt Text','Bay Code','Bay Text') NOT LIKE 'No Code0No Bay' then 'Invoice #' end)
(you could customize that concat however you like or add combinations to exclude other attributes that would indicate no appointment)
Re: Need help with beast modes to show yesterday's invoice total amount, and same day last year
Watch out for your second portion of the evaluation...easy typo but you're looking at YEAR() vs MONTH() so it's not going to yield any results.
Same day last year: case when year(`INVOICE_DATE`)=YEAR(CURDATE()) -1 and YEAR(INVOICE_DATE) = MONTH(CURDATE()) then INVOICE_TOTAL_AMOUNT
^^^ instead of year(invoice_date) I think you'd want month(invoice_date)
Your formulas don't really sync up with how you're describing the need. The "yesterday" beast shown is more like "current month to-date, including today". Yesterday would be something along the lines of case when INVOICE_DATE=CURDATE()-1 then INVOICE_TOTAL_AMOUNT.
When talking about yesterday year over year you can do it many ways. Keep leap years in mind so you're ready for 2024. Using DAYOFYEAR() is really easy and will work fine till 2024, then it's not a perfect calendar day match for most months. Or could use something along the lines of WHEN DATE_SUB(CURDATE(),INTERVAL 366 DAY) = INVOICE_DATE THEN INVOICE_TOTAL_AMOUNT. Or something that looks at DAY/MONTH/YEAR-1 matches. So many ways... :)
![22-10-dojo-promo-dp23-call-for-presenters-1200x600[63].png](https://us.v-cdn.net/6032830/uploads/KNNYBCQZWSRX/22-10-dojo-promo-dp23-call-for-presenters-1200x600-5b63-5d.png)


