Best Of
Re: Count Distinct with Fixed?
@Domomon DISTINCT doesn't work with window functions, and I believe that's no exclusive to Domo, as I think that goes for MySQL and SQL Server as well. I've seen that one solution is to use DENSE_RANK() instead of COUNT(DISTINCT ), but that does take nulls into account, so just keep that in mind. If that doesn't work, you'll need to use an ETL and use a GROUP BY and joins.
Re: Using Variables in Beast Mode
Here's a re-worked case statement:
CASE
WHENDate of Deathis NULL THEN FLOOR(DATEDIFF(CURRENT_DATE(),Date of Birth)/365)
WHEN FLOOR(DATEDIFF(Date of Death,Date of Birth)/365) < 1 THEN '<1'
WHEN FLOOR(DATEDIFF(Date of Death,Date of Birth)/365) < 3 THEN '1-3'
WHEN FLOOR(DATEDIFF(Date of Death,Date of Birth)/365) < 6 THEN '3-6'
WHEN FLOOR(DATEDIFF(Date of Death,Date of Birth)/365) < 9 THEN '7-9'
WHEN FLOOR(DATEDIFF(Date of Death,Date of Birth)/365) < 12 THEN '10-12'
WHEN FLOOR(DATEDIFF(Date of Death,Date of Birth)/365) < 15 THEN '13-15'
WHEN FLOOR(DATEDIFF(Date of Death,Date of Birth)/365) < 18 THEN '16-18'
ELSE '18+'
END
Due to how case statement functions, you are able to remove the between logic and just use less than logic which makes the statement a bit more concise.
Hope this helps.
Re: Beast Mode
You can double click on the beast mode in the fields pane in the beast mode editor and it will populate in your beastmode - that way you don't have to re-write the logic again:
Re: Multiple Values in a Pie Chart
You can also combine the Tootip Field and the datalabel settings to display multiple values. However, the Pie value will only take the first into account.
Re: Multiple Values in a Pie Chart
@Mirnes, @trafalger is correct that pie charts can only display one value at a time. If you want to be able to switch back and forth between values, you can do that using Variables.
Re: Multiple Values in a Pie Chart
Are those two columns mutually exclusive? Is it ever the case that both columns will have values in the same row? If not, then you can use: IFNULL(`Maintenance`,`Disruption`)
If there are cases where both columns could have a value on the same row, then I would suggest appending your data in ETL so that both columns are stacked ontop of each other and then the new single column can be used (if that makes sense, I don't know the details of your data)
Re: Visualizing Linear Regression Confidence Intervals in Domo
The forecasting chart has fields where you can plug in lower/upper bounds of forecasts.









