Best Of
Re: Adding extra budget condition in Beast Mode
Hi @PJG you could do something like this:
case whenActual Costs<Planned Costs*1.01 ANDActual Costs-Planned Costs> 20000 then 'Over Budget' whenActual Costs>Planned Costs*1.01 ANDActual Costs-Planned Costs> 5000 then 'Over Budget' else 'Under Budget' end
Re: Time to Number value
I'd recommend looking into TIME_TO_SEC function to convert your string into total seconds then you can divide that number by 3600 to convert to it to hours and then SUM it.
TIME_TO_SEC
Returns an elapsed number of seconds for all values in a date/time column.
TIME_TO_SEC('DateCol')
Re: Fixed Beast Mode for Percent of Category
This wouldn't work for my use case but I did find a solution by wrapping the denominator with the fixed by function and adding the date being used as the filter on the card to the fixed by statement:
COUNT(DISTINCT CASE WHEN Status = 'Unqualified' THEN Lead ID END) / (SUM(COUNT(DISTINCT Lead ID) FIXED(BY Company, Lead.CreatedDate)))
Re: Can you do a running total in a pivot table?
@randall_white there is a feature in Domo tables to display as running total in the ‘Show Values As' menu of a column. I have tested this out in Pivot Tables, and it seems to work vertically, but not horizontally..
For example, my pivot table below will sum up revenue in running total for all rows in September column…but it doesn't roll up horizontally across columns from Sept/Oct. This feature may be a solution in some cases, but not all.
The solution I found to sum up across columns….is using a window function beastmode, for example, if I want to sum the revenue column across time.
I plug that beastmode into my values column and can see that it's totalling up across columns, but not grouping how I want, which indicates I need to add a PARTITION BY clause to the grouping elements in the pivot rows
Let's update that formula
And visualize the result, which is looking much better because it's grouping the running totals by the row groupings in my chart (department,sales_rep) and ordering it by date.
Re: Beast Mode Combining Columns
@Stucker Try removing the CONCAT functions in your formula since that will prevent your calculation from seeing your fields as a number. Also, do any of your 6 columns have null values? If so, you will need to wrap each field in an IFNULL(`fieldname`,0) since adding nulls across the same row will cause values for the entire row to return null









