Best Of
Re: I need to create a dynamic report that shows me data between 2 and 5 days ago
Hi @Mike_Shrift ,
One thing you can do is to make a filter. So if you have a card that is a table, you can write a formula/beast mode like
CASE
WHEN `date`>=(Curdate()-5) AND `date`<=(Curdate()-2) then 1 end
Then you'd filter on 1s.
Make sense?
John Le
You're only one dashboard away.
More video solutions at: https://www.dashboarddudes.com/pantry
Re: Capture Duplicates in DOMO
See if either of these works:
sum(count(`Location`) fixed (by `Name`,`Title`))
or
count(count(`Location`)) over (partition by `Name`,`Title`)
Re: I'm stuck. Sum of a Windowed/Partitioned Sum???
Hi @chapman
So I think you're close, but just need to move some things around. I made a video for you to show you how:
https://www.loom.com/share/295fd98f101c4ef0b5a6a7e6ddce4363
Good luck,
John Le
You're only one dashboard away.
More video solutions at: https://www.dashboarddudes.com/pantry
Re: how to the find difference between dates ( in days ) that are in one column?
can you try:
DATEDIFF(`Transaction Date`,LAG(`Transaction Date`,1) OVER (PARTITION BY `Customer ID` ORDER BY `Transaction Date`))
I'm not sure if LAG() works in beastmode or not
Re: Creating a DataBase on Magic ETL
@luizalauretti You should be able to create the second table using a Group By tile in MagicETL that groups by PPG, RE, and TYPE then takes the Sum of VALUE. Then you can use an Add Constants tile to create a new AREA column with a value of "SP".
Re: Rank Function Skipping Rank Numbers
@lb1234 Try using DENSE_RANK() instead of RANK() to make sure numbers don't get skipped
Re: 3 month moving with current month for a date column
@gbrown You will need to use a Window function for this calculation, although those functions are not supported in Domo's version of MySQL. You would have to use either the Rank & Window ETL tile or write it in a beast mode.
Re: How can I format the date in a YOY chart
@damen You can configure the date format on the X-Axis under Category Scale (X) > Date Output Format
Re: Splitting up multiple-value fields into multiple rows
@jrtomici I did something similar where I break up words into individual values and then put them on each row. I walk through how to do it in this video. Hopefully this will help you.
Re: Row Count growth change
@renee12345 Here is an example that I believe will work for you. I changed two things. I changed the DAY() function to Date(). The DAY() function returns the numerical day of month (i.e. 15 for Dec 15th, 2022) and Date() will return the actual date (i.e. 2022-12-15). Another change I made was that I added in date_add to ensure it was pulling in yesterday's date. This wasn't necessary as curdate()-1 will also work here as @MichelleH pointed out.
(SUM(CASE WHEN DATE(`Snapshot Date`) = CURDATE() THEN `Row Count` ELSE 0 END)
-
SUM(CASE WHEN DATE(`Snapshot Date`) = DATE_ADD(CURDATE(), interval -1 day) THEN `Row Count` ELSE 0 END))
/
SUM(CASE WHEN DATE(`Snapshot Date`) = DATE_ADD(CURDATE(), interval -1 day) THEN `Row Count` ELSE 0 END)




