Best Of
Re: How to append monthly data?
Hi @eriena
You'll want to utilize a recursive dataflow. The knowledge base has several different articles on how to do this. Here's the Magic ETL version:
Re: Issue with dates in ETL
@r4geqwit I actually was able to recreate your issue in Magic ETL. This does seem like a bug that should reported to Domo Support. However, I was able to develop a workaround by wrapping a date function around both values and then it evaluated correctly. Like this:
CASE WHEN DATE(`datereported`) >= DATE('1/1/2022') THEN 'Y' ELSE 'N' END
I would suggest doing something like this your ETL as a temporary fix, but also letting support know of the bug.
Re: Data Overview
Hi @Stefan
Domo provides some metadata specifically with this information. If you use the Domo Governance DataSets connector you can pull in the "Dataset Schema" dataset which will list all of the datasets and columns in each dataset.
Re: Need help to show total of last 18 months for each month for last 12 months
If your dataset is showing totals for each day, you can do this in Magic ETL with just a few tiles. It would look something like this:
Use the formula tile to create a year column and month column
Use the group by tile to get totals for each month:
Use the Rank & Window tile create an 18-month total calculation by using the SUM and 18 preceding and sorting by year and month
This should get you what you want.
Re: How to build a card which show the latest-date data only?
I actually found a solution for this using ETL instead of SQL. I did a Rank and Window function on the Batch ID field, where I ranked the ID by descending order so that the latest batch will also have a rank of 1. Then I did a filter in the ETL to only show rows with a rank of 1 (you can do this filter with Beast Mode instead if necessary).
Re: Historic Gas Price Datasets
I found these API calls as potential options for you:
https://collectapi.com/api/gasPrice/gas-prices-api/stateUsaPrice
https://collectapi.com/api/gasPrice/gas-prices-api/usaCitiesList
Re: Is there a way to retrieve or export cards data to csv using Domo API?
Make sure you're using the correct layout id. Also you may need to do a PUT request to the writelock endpoint (https://[INSTANCE].domo.com/api/content/v3/pages/layouts/[LAYOUT_ID]/writelock ) to establish a write lock before attempting to save your layout and then issue a DELETE request to the same writelock endpoint to release the writelock.
The JSON structure that is sent in the PUT request to save the actual layout is slightly different than what you get back from the GET request. You'll need to monitor network traffic to get the exact structure needed (right-click in the browser, select inspect element, then select the network tab. Click Save on the layout to see what request is being sent)
Re: Is there a way to retrieve or export cards data to csv using Domo API?
You can use the page layout API to get the definition and to also save the updated definition.
https://[INSTANCE].domo.com/api/content/v4/pages/layouts/[PAGEID]
use a GET request to get the definition and a PUT request (with the JSON definition as the body of your request) to save the updated definition
Note: This is not officially supported by Domo. Use at your own risk. If not done properly can completely break you page and cause it to fail to load. Also, these APIs can change at any time.
Re: Beastmode adding multiple different values from the same column
Hi @user048760
You can utilize a beast mode to conditionally add the values together with a CASE statement:
SUM(CASE WHEN `Marketing Channel` IN ('Yelp', 'Facebook', 'Google Ads') THEN `Value` ELSE 0 END)
Re: Domo and GitHub
Domo now offers a new product called "Sandbox" which does what you're looking for where you can promote pages to "production". You can talk with your CSM to get a demo of it. It is a premium feature so it'll be an extra charge. You can read more about it here: https://domohelp.domo.com/hc/en-us/articles/4403367344023-Domo-Sandbox






