Best Of
Re: Using Replacement Variable with sql query on workbench
Thank You! I missed to seed the replacement variable with id. I was able to resolve this issue by adding a value to the replacement variable.
Re: Using Replacement Variable with sql query on workbench
it looks like you're not using the replacement variable in your SQL statement it should look like this:
SELECT id, name, source, dateAdded
FROM tablename
WHERE id > !{lastvalue:id}!
ORDER BY id ASC
and then make sure to seed your replacement variable with an id that you would like to start importing with, then once it runs successfully your value will be updated with the last value that you imported.
https://domo-support.domo.com/s/article/360042932734?language=en_US
Re: Legend right next to its Lines?
It may not be exactly what you want but I would try the line labels option
Re: Legend right next to its Lines?
Yep! Chart Properties > Data label settings > Text = %_SERIES_NAME > Show On: Last Item Only
Re: Case when and formula with date
On your top condition you are returning `Total referrals `=0. If you want it to be 0 in this condition then just return 0
case
when `Parent OR AgencyName` = 'Aspire Home Healthcare' and `Date` >= '10/23/2024' then 0
ELSE `Total referrals`
end
Re: Need help writing a Beastmode
In beast mode, CASE statements can’t perform aggregate functions like SUM within the conditional logic. Use the CASE statement to identify the rows that meet your criteria, and then apply the SUM function on that logic at the card level.
I'm not sure what you are trying to do with your conditional logic. You are saying if the age group is A, B, or C then do something. Normally you would have a case WHEN for each or some of those age groups. From what I see, you are asking for current balance on any age group over 120 days.
CASE
WHEN `Days Past Due` > 120 THEN `CurrentBalance`
ELSE 0
END
Create the formula, and then aggregate (SUM) on the card.
Re: How to format "or" clause in Query?
Domo's Javascript may not support .or(). Using the following code, you should be able to get the include to return true if either condition is met….creating an or condition.
query
.select([...]) // <- specify select columns here
.where(row => row.errorMessage.includes('Some text') || row.errorMessage.includes('Some other text'))
.limit(1000);




