Best Of
Re: ETL error: "failed to convert value 'Infinity' from type 'Floating Decimal' to type 'Fixed Decimal'"
I'll just add some context for anybody still watching this issue. This comment is specific to Magic ETL; Beast Mode (Domo Adrenaline) works differently:
Issues like this happen when you mix floats and decimals, or sometimes integers and decimals (since dividing an integer by an integer produces a float). When a decimal is divided by zero, you get a "division by zero" error. A float, in contrast, becomes one of three special values depending on the numerator: Infinity, -Infinity, or NaN for numerators 1, -1, and 0 respectively.
Almost any function or operator applied to a decimal and a float will begin by trying to convert the float to a decimal (e.g. DECIMAL(8) / 8.0 becomes DECIMAL(8) / DECIMAL(8.0)). If the float is any of those aforementioned special values this conversion fails with the error you saw.
There are a couple ways to avoid this problem. The most common is to ensure that any denominator that might be zero becomes null instead, so any division by zero results in null instead of an error or a NaN/Inf/-Inf. For example, instead of 100 / maybe_zero you'd write 100 / NULLIF(maybe_zero, 0). This solution works for both floats and decimals as long as you apply it consistently.
However, if you already have NaN/Inf/-Inf in a float column, you need a way to get rid of it or at least treat it differently in your formula. To do that, you can use the FINITE(…) function. FINITE(num) is true when num is a real number, null if it is null, and false if it is any non-finite special number like NaN or Infinity. If you want to use a float column num without its NaNs or Infinities, you can wrap it in an expression like this: CASE WHEN FINITE(num) THEN num ELSE NULL END
rco
Re: Heatmap Time Sorting Issue
@pstrauss I was thinking you would convert the time to a military time so that there is no confusion between 1am and 1pm. I haven't tried it, but would think you could use the time_format function to do this. You can use this page as guide to the proper formatting.
https://www.w3schools.com/sql/func_mysql_time_format.asp
Also, you might try adjusting which is first in your sorting properties, the field in the x-axis versus the y-axis. I have seen that have an affect on how the heat map renders.
Re: How to use filters to calculate MTD, QTD & YTD using 3 different cards?
Hi @TejalGovila , Here is a good example page of a few types of variables used to show different time slices.
Example Period over period variable page:
JedP
Re: Freeze Top Row of Tables
I agree this could be a good enhancement to Heatmap tables specifically, as that doesn't show up in their chart properties.
My recommendation for an alternative is to use Mega Tables as column names are locked at the top as you scroll. See also Chart properties > Heatmap options in to apply coloring to get colors how you want. Also, in the General > Number of locked columns, one can lock the number of columns to allow a side-scroll. The Header Row settings here are mostly for formatting and height.
Also, Pivot Table headers are frozen at the top automatically with a couple formatting settings shown in this doc -
Re: Timeline to publish app studio to app store
To add on to that - I just got word from the product team that we are planning on early next year to be available to add apps to the app stores and that you will be able to upload an icon or choose an icon from a library.
zcameron
FORUM FRENZY DAY -- answers from Domo employees
Hello Community!
Today is our Forum Frenzy day. We've recruited members of Domo's consultant, technical support, and education teams to be in the Forum to answer questions in real time.
If you usually answer questions, today is a day to kick back and take a break. Hopefully you have some questions you can bring to our Domo team.
Let's flood the forum with questions today 🎉







