Best Of
Re: Using beast mode to compare strings
@Mark Puddephatt You can use the INSTR function to return the starting position of the email address within field2. If field1 is contained within field2 it will return a number greater than 0.
case when INSTR(field2,field1) > 0 then 'Looks good' else 'Looks bad' end
Re: Using beast mode to compare strings
I'd probably do something like
case when instr(upper(`field2`), upper(`field1`)) > 0 then 'Looks good'
else 'Looks bad'
end
Re: Get timestamp from workflow step
There are lots of ways to do this. The most important thing is just to find a way that works and isn't computationally overloading.
In this case I would absolute recommend a code engine function.
Here video on making that exact function:
And here is the code that I review in the video:
———————————————-
http://const codeengine = require("codeengine");
function getTimeStamp() {
let timeStamp = Date.now();
console.log(timeStamp);
return timeStamp;
}
module.exports = { getTimeStamp };
Division By Zero - Be Aware - Failed IFERROR, IFNULL, and GROUPBY
When you're performing calculations over 100s of millions or records sometimes you come across division by zeros in which you're hoping the software you're using would manage accordingly, I ran into a scenario in an ETL scenario where it lead to having more than a 10% revenue shortfall in my numbers.
Generally in Domo if there is no data or if there is an error it will return a NULL in the output variable; however, if it is a division by zero, several functions fail to work with the output.
Figure 1: Input and Output
- Ratio = Num / Denom
- Ratio IFERROR = IFERROR(Num / Denom, 0 )
- Ratio IFNULL = IFULL( Num/Denom , 0)
- Ratio Backfill IFERROR = IFERROR(IFERROR(Num / Denom, 0 ),0)
In Figure 1 you can see in row 4 that the Ratio of Num and Denom yielded a blank calculation, however, both the IFERROR and IFNULL failed to backfill with the assigned zero.
Compared to Row 6 where the Ratio is also blank, but the IFNULL was able to backfill with zero. Not that a blank / blank for Domo is not necessarily an error, hence it did not meet the criteria for Ratio IF ERROR result of 0.
The real problem came when it was time to Group BY.
Figure 2: GroupBY Node
When I grouped by Products and sum Ratio and Ratio IFERROR, Product Y failed to sum in Figure 2 Row 3 because of the blank in row 4 (Division by Zero) from Figure 1, as opposed to Product Z which also had a blank cell in row 6, but was able to sum as seen in row 1 in Figure 2.
As a workaround, I used a case statement to check the denominator before computing the ratio.
case
when Denom = 0 then 0
else Num / Denom
end
Domo is aware of the issue, but be aware that IFERROR, IFNULL, and GROUP BY fails at managing division by zero errors.
Think about it this way, if Product Y was 1 million records and just 1 of those 1 million records had a division by zero, the sum of all 1 million records would result with a BLANK.
Re: Magic ETL | Remove Duplicates Tile | Select all fields option
This is a good idea, and something I've heard a few times now. I will be reviewing with my team. I think it would also be nice to have this same feature on any tile where you have the option to select columns.
PRODUCT RELEASE SNEAK: Sandbox and Publish Community Post
As an active Community member perk, we will be providing insider sneak peeks for the features we will be releasing on Wednesday May 22nd 🥳
A little bit about App Studio: App Studio is a no code, drag-and-drop interface that enables anyone to create their own customized app experience with all the data, power, and capabilities of the Domo platform. This includes writeback capabilities, custom navigation, custom layouts, themes, actions, forms, and more.
Two new enhancements are going to be available to App Studio this month! We’re adding Sandbox and Domo Everywhere capabilities.
Sandbox: When creating a new repository in Sandbox, you can now select App Studio apps. Now you can prepare everything directly in production environments before releasing it for broader use ensuring that everything runs perfectly, without hiccups or downtime.
Domo Everywhere: In March, we released App Studio Embed Integration for our Domo Everywhere users. This month we are releasing the App Studio Publish integration! Customers can create a publication directly from within their apps and publish the content to subscriber organizations. A subscriber organization can subscribe to publications individually, as invited or auto-subscribe to receive all publications that come from a trusted publishing organization.
@Ken_Boyer is my Product Manager over Domo Everywhere and can chime in and help answer any questions. @Matt Tannyhill and @Khushboo can also chime in from an App Studio perspective.
Please note these features are subject to change and could lead to a delay in its deployment for an unknown amount of time.
Re: Filtering inside a DDX Brick
I don't know anything about Javascript but have you considered filtering the data through an ETL/Dataset View to current month data if that is all you need for the DDX brick?
Interested in learning how to use Domo Workflows?
Domo University has just released a new Getting Started with Workflows self-paced training course! In the course, Dan Hendriksen, Director of Product Enablement guides learners through an introduction to the Workflows interface, toolset, and best practices by walking through the creation of 3 real-world Workflows that can be deployed in your own instance. By the end of the course, you'll have the skills needed to build your own Workflows to automate tasks and orchestrate actions through Domo.
Enroll in the self-paced course here:
zcameron
Re: Google sheet date format
@vaco I have not had that issue with the Google Sheets connector before. Do you have data validation rules set up on your date field in Google Sheets to ensure it is all stored as a datetime?
Re: can you include "rescind" policy status as well for the above risk classes?
@benm_2000 Is there a policy status column in your dataset? If so, you can drag it from the Dimension section of Analyzer to the chart columns to include it in your card.
However if you are unsure, your best bet is to ask whoever requested this change for some clarification on what specifically they are looking for. If there is business logic that needs to be applied then we can help you translate that.








