Best Of
Re: Automate file upload
@vaco take a look at the Amazon S3 Advanced connector. I think this will pickup multiple files.
https://domo-support.domo.com/s/article/360043436353?language=en_US
Re: Filter Based on Percentage Change of Chart
Hi @Josh_Evans20,
Here's an example of calculating the percentage difference in Beast Mode:
(ZZ_VALUE_THIS_M-ZZ_VALUE_LAST_M)/((ZZ_VALUE_THIS_M+ZZ_VALUE_LAST_M)/2)
This month's turnover (ZZ_VALUE_THIS_M):
SUM(CASE WHEN YEAR(CURRENT_DATE()) = YEAR(Date) AND MONTH(CURRENT_DATE()) = MONTH(Date) THEN Parts Kits Value ELSE 0 END)
Previous month's turnover (ZZ_VALUE_LAST_M):
SUM(CASE WHEN YEAR(CURRENT_DATE()) = YEAR(Date) AND MONTH(CURRENT_DATE())-1 = MONTH(Date) THEN Parts Kits Value ELSE 0 END)
Filter formula (ZZ_FILTER). You can customize it to suit your requirements. You can also implement a slider variable or free input variable to easily select the filtering value for the difference.
CASE
WHEN (ZZ_VALUE_THIS_M-ZZ_VALUE_LAST_M)/((ZZ_VALUE_THIS_M+ZZ_VALUE_LAST_M)/2) > 0 THEN 'Above'
ELSE 'Below'
END
Here is the result using the HTML table:
You can adjust the table by selecting the filter:
Re: Dataflow wont run!
@MichelleH I checked to see if it was already running, and it wasn’t. I left it for a day and came back to it, but I’m still getting the same error.
Re: Substitute for if / then statements
The main difference between the two is that the IFNULL function takes two arguments and returns the first one if it's not NULL or the second if the first one is NULL.
The COALESCE function can take two or more parameters and returns the first non-NULL parameter, or NULL if all parameters are null.
In your case, either one will work.
Re: enabling embedded App Studio app to have export functionality
@Taurance @Nick12 export at card level on apps from app studio can be enabled by making a simple call to your instance api.
It involves making a PUT request to this url (but for your own instance). This URL can be found in the network tab of dev tools when enabling embed on the app. The instance and number will be unique to your instance.
https://yourinstance.domo.com/api/content/v1/pages/embed/1899398378/state
You can then send
{
"publicLink": "PRIVATE",
"title": true,
"interactions": true,
"filters": true,
"dataExport": true,
"scheduledReport": false,
"dataMaximization": true,
"persistFilters": false,
"openLinksInNewTab": true,
"entityType": "DATA_APP"
}
To that endpoint which will enable the export.
Re: Stacked Bar from this dataset config?
Ideally, your data would look like this:
Category Type Value
Budget Planned 343
Budget Carry-over 3432
…
The easiest way to get it in that format is with MagicETL. There's probably a more elegant way to do it with a dynamic unpivot, but to me, the easiest to understand is to just select the two columns, add a category column and stack the results on top of each other:
Once it's in that format, the stacked bar is easy:
Re: Stacked Bar from this dataset config?
If you transform your dataset
Category | Value | Type |
|---|---|---|
Budget | 343 | planned |
Budget | 3432 | carry-over |
Budget | 123 | unplanned |
Forecast | 444 | planned |
Forecast | 4432 | carry-over |
Forecast | 145 | unplanned |
Actuals | 200 | planned |
Actuals | 3302 | carry-over |
Actuals | 80 | unplanned |
Then create a stacked bar using category on the xaxis, value on the yaxis, and type in series, you get this:
Re: Stacked Bar from this dataset config?
To transform your dataset, use Magic ETL.
Setup selected columns.
Add an Unpivot Tile. Drag the Unpivot Columns tile onto the canvas.
Unpivot Columns: Select budget, forecast, and actuals.
New Column for Key Names: Enter Category.
New Column for Values: Enter Value.
This will turn the three columns into two: Category and Value.
Re: Can you add count (n) to box-plot graphics?
The label options on boxplots make them essentially useless, IMO. You can't even position them in the correct location (i.e. median goes on the median).
You could concatenate the N to the axis labels. Something like this:
Disadvantage is changing the names of the series makes cross-filtering between cards dice-ier.
I would love some better options to graph variation in Domo (or even just better boxplots).
Re: Percent of Series?
If green is a subset of blue, I think the overlay bar is the appropriate graph. The advantage of the overlay is that even without figuring out the percent that you want, the raw values will be correct, so hovering and tips will work out of the box.
The default calculation for percent_of_category isn't necessarily wrong, it just isn't what you want for your situation. There isn't a way to tell Domo that your series is hierarchical, so it's assuming you want to add up the different groups in your series to comprise the category.
When aggregating the values for green, you can't really directly access the values for blue, since they are held on different rows than the values for green. What you can do though, is used a fixed function to find the total for the category (blue+green) and then subtract out the green values. That's what my beastmode is doing above:
sum(`Value`) / — find the numerator (total of greens)
(
sum(`Value`) fixed(by `Category` ) — this is the same denominator as percent_of_category (blue+green)
-sum(`Value`) —subtract out the greens
) —a denominator of blues












