Best Of
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
Re: How to compare Value Columns
@JackB116 I'd actually suggest changing your card from a Pivot Table to a Table chart type if you want to add calculations. You'd need to use beast modes for your 2022 and 2023 totals like this:
sum(case when `Delivery Year` = '2022' then `GDP Net` else 0 end)
Then your % difference calculation would look like this:
( sum(case when `Delivery Year` = '2023' then `GDP Net` else 0 end) - sum(case when `Delivery Year` = '2022' then `GDP Net` else 0 end) ) / sum(case when `Delivery Year` = '2022' then `GDP Net` else 0 end)
Re: How can I convert an Excel date code into a normal M/D/Y formatted date?
Hi @HowDoIDomo ,
So the start of that 4** date is Jan 1, 1900 so you need to create a column in an ETL with that Date and then add your number of days to that date. I made a video for you to see:
John Le
You're only one dashboard away.
More video solutions at: https://www.dashboarddudes.com/pantry
Re: Numbers disappearing on bar charts with small bars
I thought that there was an option to show even when overlapping, but I am not positive if that would assist in this instance. If this is not available, I would suggest taking this to the Ideas Exchange to get this upvoted to be implemented as product enhancement. Here is a link to the page:
AKnowles
Re: sum the value by week and display first/last day of week instead of week no. on x axis
MichelleH Thanks for the response. I think a beast mode like below is able to solve the problem, along with the options you have suggested.
DATE_ADD(`date_id`, INTERVAL (8- DAYOFWEEK(`date_id`)) DAY)
Re: How to display week end date instead of week start date when aggregrating daily sales data to weekly
Hi @EM
You can utilize DAYOFWEEK and some simple math to get the last day of the week.
`Date` + INTERVAL (7 - DAYOFWEEK(`Date`)) DAY
The DAYOFWEEK function returns a number between 1 (Sunday) and 7 (Saturday). Subtracting that from 7 gives us the number of days until the end of the week which we just add that number of days to the exiting `Date` value.
Re: Applying a color rules conditionally based values in columns.
Upvoting, agree and posted about this last week. Glad I'm not the only one. ^_^
https://dojo.domo.com/main/discussion/56737/can-you-paint-with-all-the-colors-of-the-web#latest


