Best Of
Re: Counting or Grouping?
@Domolex welcome to the forum (and there are no bad questions here). It is certainly smart to first try and build what you need off the source dataset and see if you can skip the ETL execution.
To count distinct event ids you can create a beast mode that looks like this:
COUNT(DISTINCT eventid)
You can put your date on the x-axis and this beast mode on the y-axis and set the date range filter to graph by month and you would have your events by month.
Re: Filter does not work on all cards in an App
Ensure that the name of the beastmode is identical in both datasets. Also check that you don't have any filter exceptions in place for that card.
Re: Color rules based on today's date instead of a static date
Hi Sridhar,
If I understand your question correctly, something like this in a beastmode might work:
case
when `date` <= CURDATE()
then CONCAT('<div style="background-color:#bbe491; width: 100%; height:100%; margin:-20px; padding:20px"><a href="#">', `date`, '</a></div>')
end
Is that what you're looking for?
Re: SALT LAKE CITY CONNECTIONS TOUR CHECK IN
Hey hey! Loving the Connections Tour so far!
Re: Working with hh:mm:ss values
I took your sample times and was able to add them up using the following in Magic ETL:
Your group by would likely look different than mine, likely some sort of event id or something.
I used split_part to break out the individual time elements and get a total number of seconds and then use the group by to sum it up. The next formula tile breaks it back out to the individual time elements and the concatenate them together. I use Floor to get the highest whole number and then convert it to an integer so that it is a whole number.
Re: Unpivot
Hello @verytiredgirl,
You can do it in several steps. Here is the example data:
First, make Dynamic unpivot:
Split the unpivoted column into two columns: one for dates and one for types:
Change the format of the 'Date' column into Date with the Alter Columns tile:
And finally, pivot the 'Type' column:
Here is the result:
I hope this answers your question ;)

















