Best Of
Re: Filter is removing nulls plus specified value
@NateBI Nulls don't play well with logical operators. Null isn't the same thing as nothing, it really means that the value is unknown. Is null blue? SQL doesn't know so it treats it as if it meets the condition.
You can use a formula rule to get around this:
IFNULL('status','') = 'Blue'
This will replace your NULL value with a blank which it can evaluate in the comparison.
Alternatively, you could use the formula:
'status' = 'Blue' or 'status' IS NULL
Re: ETL Calculation
@zuchu You will want to use a Rand & Window tile:
You'll do a sum of the costs and partition by the order number. This will give you the total of the order on each row that the order number appears.
Re: ETL Calculation
My approach would be to use a group by tile here. I would group your orders by whatever your unique identifier is for a single order (the one with 5 items in this case). I'll call this field OrderID for demonstration purposes.
You would use a group by tile and group the data by OrderID . You would then add an aggregate field that would be the SUM of Cost field. You could call this field TotalCost
Next, you join this back to your original data (join on OrderID ). This will add a column to your original table that would be called TotalCost and would be the sum of all Cost within a single OrderID
@RobSomers I would recommend using rank and window tiles when you need a running total.
Re: Apply color rules to variable values
This feels like it would be a feature request. I'm not aware of any way to do this in the product currently. Could you post this again on the Ideas Exchange?
Ideas Exchange — Dojo Community (domo.com)
I would up-vote it, it's a great idea!
Re: How to calculate best?
For the final calculation, you could try something like:
(SUM(CASE WHEN `Field` IN ('9','10') THEN 1 ELSE 0 END) -- Sum of 9 and 10
-
SUM(CASE WHEN `Field` IN ('9','10') THEN 0 ELSE 1 END)) -- Sum of all Other Values
/
COUNT(`Field`)
It's hard to be too sure without seeing more of the dataset, Could you post a few lines of the data?
Re: Single Value Card - No numeric abbreviations
@MarkSnodgrass Thanks Mark this helped me today!
Re: Toggle series in bar chart
@MichelleH @RobSomers extremely helpful, thank you for telling me about this feature!!
Re: Toggle series in bar chart
@jrtomici You can accomplish this by creating a variable with values for each type of calculation. Then you can create a beast mode based on which calculation type is selected in your variable control like the one below. This beast mode would then be used as the Value/Y-Axis in your card.
case when `Calculation Type` = 'Calculation A' then `Field A` when `Calculation Type` = 'Calculation B' then `Field B` end
More on variables here: https://domo-support.domo.com/s/article/7903767835031?language=en_US
Re: Toggle series in bar chart
@jrtomici You can look into using variables for this. Make the inputs 'Total A' and 'Total B', and then create a beast mode like:
case when 'Variable' = 'Total A' then 'Total A' (or beast mode calculation)
when 'Variable' = 'Total B' then 'Total B' (or beast mode calculation)
Re: Change default "No data in filtered range domo" message
@NateBI You can change the text you see when there is no data in the card under Chart Properties > General > No Data Message


