Best Of
Re: SQL formula for blank cells
Alternatively you can combine both together and use a coalesce and NULLIF
COALESCE(NULLIF(TRIM(`fieldname `), ''), 0)
Re: SQL formula for blank cells
You could do something like this:
CASE WHEN TRIM(fieldname) = '' THEN 0
ELSE IFNULL(fieldname,0) END
This will check to see if it is blank or if it is null (which are two different things) and replace it with 0 if either are true. Otherwise, it will return the existing value.
Re: Data Snapshot
@damen Yes, you can use a recursive dataflow to create your master "snapshot" data. The way you would do this is to add a column to your input data with the current date, then append to the existing output dataset. Here is a KB article about how to set up a recursive dataflow:
As for your question about duplicate entries, you can create a second dataflow that runs the snapshot data through a Group By tile to show the original value. Do not do this in the original recursive dataflow since you will lose all the detail data.
Re: Data Snapshot
Use the "Dataset copy" connector, take a copy of the original dataset and append it to your snapshot dataset on a quarterly basis. From there you can make an ETL that marks the most recent version of the data as the most recent and use the snapshot date to view history of the date.
Re: SFTP Push Connector
I know the CSV Advanced PULL connector can (which I've found to be easier)
blob:https://community-forums.domo.com/df69bfd0-b83c-42fc-aed5-93d09ab4f170I usually use the CSV advanced files which don't support excel, but other excel connectors can usually specify the tab.






