Best Of
Re: Weighted Averages of Summary Data
I think it would be something along the lines of...
sum(`N` * `X-Y Average`) / sum(`N`)
Re: Query to create a condition on a database
you can easily created a beastmode case statement as
CASE
WHEN `PPG` = 'MPA 90GRS' THEN 90
WHEN `PPG` = 'CTA 90GRS' THEN 90
END
Adding as many conditions as you want individually or this is another option
CASE
WHEN `PPG` IN ('MPA 90GRS', 'CTA 90GRS') THEN 90
WHEN `PPG` = 'CLUMINOUS 70GRS' THEN 70
END
now if , PPG contains a lot distinct values , you could ETL a table with those values and join it to your data.
anyways, there is a lot different ways to do that. hope this helps
Re: Zendesk 1000 row limit
@Tsharma8724 It looks like it is a limitation of Zendesk API on results per query. https://developer.zendesk.com/api-reference/ticketing/ticket-management/search/
A connector enhancement request from your accounts team would be required for Domo Engineering to build it out.
You would need to adjust your query and run it on append daily so it is under the max.
TDanis
Re: Python Tile Typecasting while Reading Data
Have you tried converting your series directly to a category after you import it?
raw['column'] = raw['column'].astype('category')
Re: Getting incorrect result while computing an output using Beast mode
When you’re filtering and including a and b your lag function will pull data from metric a and b. You’ll want to add PARTITION BY ` metric ` to your lag statements to make sure you’re not jumping metrics with the lag
Re: Multiple line graph with bar graph
It's a setting under the "General" Chart properties. You will need to have the two fields that you want to be lines added to your chart as the Y-axis and the first series. Then the bar field (or fields) can be put as the second (or third, etc.) series.
You want to indicate that there should be 2 series on the left scale
Re: How to Find Dataset ID for DomoStats People Dataset?
If you browse to the actual dataset you can see the specific ID in the URL in a GUID format.
https://instance.domo.com/datasources/a12cbf64-35d0-47bb-8567-ce7c87149a54/details/overview
Re: Domo Ideas Exchange - Beast Modes - First / Last Days of the Month / Week
Hi
Hopefully this is helpful...
I riffed on some of the other answers provided and came up with this which works for me to create a week commencing monday field
-- Author: -- Created: -- Last Modified: -- Description: Returns the previous monday date -- Use case for creating week commencing on Monday weeks CASE WHEN DAYOFWEEK(`Date`) >= 3 THEN DATE_SUB(`Date`, INTERVAL (DAYOFWEEK(`Date`) -2) DAY) WHEN DAYOFWEEK(`Date`) = 2 THEN `Date` WHEN DAYOFWEEK(`Date`) = 1 THEN DATE_SUB(`Date`, INTERVAL 6 DAY) ELSE -1 END


