Best Of
Re: window.addEventListener("message") does not trigger when card is clicked
Hi @xiaodongliang, how did you go with this? What did Support say?
amehdad
Day on Day Change Issue
Hi,
I am trying to calculate the day on day changes of campaign activities (i.e. Sends, Receipts). The problem experienced is restricting the unique counts to one day because the code I've been using includes some records of the previous day. Depending on the time of viewing the domo cards, it takes the record of 24hrs from the time of viewing (which is not necessarily 24 hrs of the entire day). I've been using date_format, specifically:
(COUNT(DISTINCT
CASE
WHEN DATE_FORMAT(`campaign_schedule_date_local`, '%Y%m%d') = DATE_FORMAT(DATE_SUB(CURDATE('%Y%m%d'), INTERVAL 0 Day),'%y%m%d') AND `media_booking_type` <> 'Sample' AND (`campaign_status` = 'Scheduled' OR `campaign_status` = 'Sent')
THEN `campaign_id`
END))
I want to see if using time_format is able to restrict the timeframe for representing daily changes to the exact day (i.e. Up until 23:59:59) but have not been able to see any values return from the code when changing from date_format to time_format. Could you please advise?
Any help is appreciated. Cheers
amehdad
Re: Can someone help me with a beast mode to fix this? I would like it to start at 12a and to end at 11p
@GrantSmith by a millisecond .... again. :)
Re: Can someone help me with a beast mode to fix this? I would like it to start at 12a and to end at 11p
@MarkSnodgrass - I win 😋
Re: Average
@GrantSmith is the king of window functions. He will be able to tell you what to do.
Re: Levels of Data in separate columns, bottom top approach
Credit to @MarkSnodgrass for offering that answer.
Re: What TYPE of post should I make?
This has to be mandatory reading for every new user or returning users after a long absence.
amehdad
Re: PDP tied to user?
Let's go step by step to determine if there was a step missing.
When you are in the 'PDP' section of your dataset, and you click on the 'Impact' button, are there clear differences in the outcomes outlined by Domo (i.e. Messages outlining what is being applied to limit the data) or does both your policies created say "Your current PDP policies on this DataSet will not have any affect on your Domo resources"?
Also, do you see this button next to 'Enable PDP'?
https://domohelp.domo.com/hc/article_attachments/360059655973/disable_pdp.pngIf not, then enable the policy to be applied to your dataset.
amehdad
Re: Can I make a period over period pivot table with a dynamic date range?
Looks like @MarkSnodgrass is a faster typer than me. Gotta work on my stealthy quickness.

