Best Of
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)
Re: Identifying "Last Week' when current week is 0 or 1
CASE WHEN `Date` + INTERVAL (7-DAYOFWEEK(`Date`)) DAY = CURRENT_DATE() - INTERVAL DAYOFWEEK(CURRENT_DATE()) DAY THEN 'Last Week' ELSE 'Not Last Week' END
To add some additional context I'm adding a specific number of days to the date field to get to saturday (7) of that day's week then comparing it to last saturday (current_date - whatever day of the week it is to get back to 7). DAYOFWEEK returns 1-7 depending on which day the date actually is.
So for example since today is Friday DAYOFWEEK is 6. 6 days ago would be the saturday of last week.
Re: Multiple Case When Statements
You were close. Just a couple syntax changes. Change the OR to an IN statement. You also had a second CASE in there that shouldn't be there. This should work for you:
CASE
WHEN `Owner.Name` IN ('Name 1','Name 2','Name 3')
THEN `Owner.Name`
WHEN `Owner.Name` IN ('Name 4','Name 5','Name 6','Name 7')
THEN 'CSG'
ELSE 'No Current Sales Rep'
END
Re: ETL sometimes does bring information and in others it does not
@Rsandoval Does your output dataset actually contain 0 rows or does the dataflow history just show 0 rows updated? Depending on the schedule settings of your dataflow and Quickbase connector, it's possible that no rows were updated but the existing rows still exist in the output dataset.
If a dataflow is triggered and the input datasets have not updated since the last run, then MagicETL v2 will not reprocess the data because the results would be the same. In this case, the dataflow history will show the number of rows changed rather than the total number of rows in your output dataset.
Re: Removing Duplication and Ordering Objects within a Concatonated Field
@n____l____ Removing the "end" after your concat function should resolve the syntax error. If the nulls are still an issue, then you may need to update your 19 columns to show an empty string instead of null like this:
- case
- when `Corporate Product Lines Owned` like '%Student Information System%' then 'Student Information System'
- else ''
- end
Re: Removing Duplication and Ordering Objects within a Concatonated Field
@n____l____ Do you have a list of all possible products that could appear in the list? If so, you could use a formula tile in ETL to create a column to check whether each product is listed. For example, the column to check whether Student Information System is in the list would look like this:
case when `Corporate Product Lines Owned` like '%Student Information System%' then 'Student Information System' end
Then you can re-concatenate all the new columns in the desired order without duplication.
Re: Course Builder App loaded into Domo Format Issue
@MarkSnodgrass thanks!
@jnoel There have been some issues when viewing the card in a dashboard vs regular. Does it look the same if you look in full screen vs on a dashboard? Usually, when building in CB it should be in the same format that it will be in Domo.
Ashleigh
Re: Adding Hyperlink to table values
Never mind just figured it out, just needed to add the https:// in front. Thanks for your help!
Re: How to create a column which SUMS based on the grouping of another column
You can use the group by tile to sum your quantity by invoice number and then join it back to your original dataset to get the total next to the individual items by joining back on invoice number. Your ETL would look something like this:
Re: Previous, Current, and Next Quarter Date Range in a chart
Ah okay. So I think you have to pick your poison.
1) Option 1: Make the artificial filter of a 1 if the quarter is a previous, current or future quarter, but then you can't use that same card if someone wants to choose a different quarter unless they open editor and change it
2) Option 2: You CAN make a filter at the top of your dashboard that is then defaulted to your artificial 1, but all cards on that dashboard will be affected by the date filter too if they are all from the same dataset. You can choose each card and turn off filter exceptions though so those cards aren't affected. Honestly, this 2nd option is a lot of work and I don't think worth it.
Why not just make a default card that has your artificial filter and another one right next to it that doesn't have the filter so someone can change it in a quick filter?




