Best Of
Re: Current day vs same week day last week
You could do something like this:
CASE WHEN `Date` >= DATE_SUB(DATE_FORMAT(curdate(), '%Y-01-01'), INTERVAL 1 YEAR)
AND `Date` <= DATE_SUB(curdate(), INTERVAL 1 YEAR)
THEN `Revenue`
END
This would return the revenue when it was between Jan 1 last year and current day last year.
Let me know if you need anything else,
ValiantSpur
**Please mark "Accept as Solution" if this post solves your problem
**Say "Thanks" by clicking the "heart" in the post that helped you.
Any Way to Report on Column Usage in Cards
We are trying to filter out unnecessary and unused columns from our datasets and it would be really useful to be able to create a DomoStats or Governance report that shows which columns are used on cards and which are not used at all. Is there any way to do this?
NEW COMMUNITY COACH: @david_cunningham 🔥🥳
Huge shoutout and congratulations to @david_cunningham for hitting Coach status on the Community Forums!
David joined the Community Forums just ONE month ago! He ranked up from Member ➡️ Coach faster than any user in the history of the Community! Go David!
In the month of May alone, he has answered 62 questions — this is more than half of the questions asked this month (and we aren't even halfway through May yet).
Please take a moment to thank and congratulate David for all his help and "Coach" expertise in the comments below. Don't forget to tag @david_cunningham 🙌🏻
Re: Filter in magic ETL
Thanks @david_cunningham and @Sean_Tully . I actually have both cases one without the rank and another one with rank, so thank you both for the insightful answers. I was able to filter the data.😃
Re: Filter in magic ETL
I think David's reply is correct if you don't have a rank field yet. If the rank field already exists, you instead would have to group by the id to find the max(rank), and inner join that back to the data, with the join fields being id = id and rank = max(rank).
Re: Filter in magic ETL
Yes - you can use the Rank and Window tile to create a rank based on your id. Then use the filter tile to return the rank you want. If you want the min id you can just sort ascending on your rank/window function and then filter to where rank=1. If you want the max id, you can sort descending and then filter to where rank=1. In your case, if you're wanting the min rank per group. You would need to partition by ID to start the rank over again for each id.
For example. Input dataset
The above is how you could set up your rank/window tile.
Example output
Filter to where rank = 1
This output matches your example requested result.
Re: Switching a Dataset to a Workbench
Hello @ColinHaze,
You can configure a workbench job to use an existing dataset by expanding the Domo Details section. Next to the Dataset Name is a browse button. Press this button. Click on the Connector DataSets tab and locate the dataset you want the workbench job to use. Click the Select button. I would recommend making a backup of your dataset just in case something goes wrong so you do not lose all of the data unless it is something you can reupload easy enough.
Chris
NEW Domo Data Science Resources Guide (help w/ Jupyter, scripting tiles, data science tiles, AutoML)
Hi all, I'm a data scientist at Domo on the Data Science Professional Services Team. We have a NEW Domo Data Science Resources Guide.
The guide includes a list of all the help resources Domo has created related to data science products (Jupyter Workspaces, Magic ETL R/Python scripting tiles, Magic ETL data science tiles, & AutoML), as well as a list of webinars on data science topics (forecasting, data science readiness, ChatGPT, etc.). This guide will be updated over time as more help resources become available.
If you have suggestions on other help resources that would be useful to create or data science topics that should be explored in a webinar, comment below or contact the team at datascienceSME@domo.com
Re: Break out rows depending on columns having a value
@jrtomici the answer provided by @ColemenWilson is the correct one, and I kindly ask that you please select his answer as the best response. I just wanted to provide you with a quick breakdown of how to achieve it.
Example Data
You'll use the dynamic unpivot tile, selecting "Name" to not be pivoted and then assigning whatever name you want to give your column name and column value columns. In this case I choose ID and Value
Then you can filter to where Value is not null to remove rows where there wasn't a value for that ID
Lastly, you can select the columns you desire in your output. In this case, I matched the output you showed in your post.
Re: I want to show % of year...how do I do that?
@Bkinzel_21 You can create a Beast Mode tooltip using a FIXED function.
- Add the following Beast Mode to calculate the % of Year:
sum(`Result`) / sum(sum(`Result`)) FIXED (by `Year`) - Drag the new Beast Mode to the Tooltip 1 spot (if you don't see this you will need to click the Tooltips button on the top ribbon to make it visible)
- Add Tooltip 1 to the text box in Data Label Settings or Hover Text Settings under Chart Properties
More on Data Labels and Hover Text:
More on FIXED functions:













