marcel_luthi Coach

Comments

  • This sounds like a use case for Variables, I would create a variable to select the time period: Day, Month, Quarter, Year, etc. and then a second variable asking for a date in the period. This way if the date entered is 2/17/2024 then depending on the first variable (time period) you'd get: Day: only the entries for…
  • There are limitations on what Dashboard filters can do for you. Each dimension you add to the filters will be an ADD condition (so criteria for ColumnA and ColumnB both need to evaluate to TRUE), but any additional options you add inside of each of these are used with an OR logic as you've described. There could be…
  • REGEX can be tricky, specially when it comes to replacing, so you might want to try a couple of different options until you find one that works, here's one you can try: REGEXP_REPLACE(`Information`,'.*([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9_-]+).*','$1')
  • That is expected, when you Append 2 files, at the end you need a consolidated set of columns that will remain in the appended version, this means if they do not have the same columns, like in your case, that one of the following will happen to 1 or more of the original sources being appended: Columns will be deleted…
  • You can kind of simulate a merging if you use a Beast Mode calculation and concatenate, the big problem with it is that you loose all the cool features about number formatting, so you'll have to manually set those up. Here's an example of something I did not long ago (this inside a pivot table): There I have a single…
  • @art_in_sky AVG works based on the number of non null entries, so if you null out your zeros that will solve for it. A beast mode like: CASE WHEN `Column` = 0 THEN NULL ELSE `Column` END Which then you'll select to aggregate using AVG should do the trick or removing the 0s from your AVG calculation (or you can aggregate at…
  • Just to be clear, what I posted is not the full Beast Mode, just what I suggested to replace the BETWEEN condition inside of each of the WHEN statements and not meant to be entered on it's own. I'd guess you're using the Multi-Value Columns Chart Type, if so what does your source dataset looks like, for this to work you'll…
  • I can think of 2 ways to approach this: ETL and using a window function so you can use LEAD() and have the data pre-aggregated to the Month Level. Beast Mode since you want to the Sum of February in January you'll need to leverage the FIXED function and write a WHEN statement for each possible month (or at least…
  • I try not to use BETWEEN as I seem to never get it right, try replacing BETWEEN with two comparisons something like: WEEK_STARTING BETWEEN DATE_SUB(DATE_SUB(CURRENT_DATE(), INTERVAL 1 YEAR), INTERVAL 4 WEEK) AND DATE_SUB(CURRENT_DATE(), INTERVAL 1 YEAR) Replaced by WEEK_STARTING >= DATE_SUB(DATE_SUB(CURRENT_DATE(),…
  • Do the cards still have the Show Subtotal option selected or has this been deselected by some sort of evil magic? Also when you say subtotals are missing, do you mean the row not showing at all, or the value for a certain column not being totalized at the subtotal level? This could indicate whether is a Dashboard property…
  • The separation for Null should work, you can do it in several different ways, so your first statement would be: CASE WHEN `New_Column_Name` IS NULL THEN 'a) Blank' … And from there you cover all the other scenarios. Since case is always checked in order and stops after the first condition met is fulfilled, for example if…
  • You have a comma at the end of the first line, you don't separate WHEN statements with commas, this is most likely why you're getting the error with your syntax. I do agree with @GrantSmith that this could be a good use case for unpivoting, specially if a single Row might have a value of 1 for more than a single year, as…
  • Since CASE is always checked in order, you can simplify your beast mode to something like: CASE WHEN COALESCE(`New_Column_Name`,0) = 0 THEN 'a) Zero or Blank' WHEN `New_Column_Name` < 5 THEN 'b) Less than 5' WHEN `New_Column_Name` <= 10 THEN 'c) 5-10' WHEN `New_Column_Name` <= 20 THEN 'd) 11-20' WHEN `New_Column_Name` <=…
  • Perhaps I'm oversimplifying it, but you should be able to do this with just 4 tiles: a Dynamic Unpivot, a Formula, a Alter Columns and a Pivot one. As for performance I you'd need to test it out but in General this is what the ETL would look like: Input Dataset (you could have any number of Stage # columns for each…
  • I can say I was convinced he was a Coach in disguise since before I joined, hiding his real title all this time 🤣. Congratulations and thanks for all the awesome videos you create to walkthrough the different questions here.
  • Time to run will depend a lot on the number of records you have on your original dataset and the operations being performed, while unpivot usually is usually a heavy operation, I'd like to know why 3 tiles? Can you share a sample (with mock data or sanitized) of what the Input looks like and what the output should be?
  • First, what does the raw data looks like? and then if you can do a doodle or something of what your desired visual would be? The reasons I'm asking this is because it seems to me you're talking about 3 different cards which you can put together in a dashboard to show all these entries. There are also some key things you…
  • Is there a way you can add a row number to your original dataset? We can in theory do this in ETL but without having a real column to sort on, I'm not sure if the method I've used that worked for a small dataset will keep on working all the time. Original: Backfilled (you could rename or remove columns as needed, but I…
  • You could try an IN statement instead of OR, something like: CASE WHEN TRIM(UPPER((`PRODUCTSTATUS`)) IN ('R','REPEAT') THEN 'Repeat' ELSE 'New' END I'm setting it to upper case and trimming whitespaces just to cover the possibility of the data not being clean, which is what I could guess based on the output you currently…
  • It depends on what your raw data looks like. If the card you showed us is a Pivot Table, you can do this purely with Beast Modes. I'll assume the values you have are a COUNT of activities for this purpose. In this case a Beast Mode like the one below might do the trick (FIXED is a powerful function once you figure it out)…
  • You could use a text card and a beast mode, I guess it all depends on what you'd expect the text to be. I'd leverage the Domo Calendar dataset just to be sure my tile will still show data even when I might not have entries in my actual datasets I'm building the cards from (since I guess you'd only want to show the name of…
  • This sounds like a good option to use a Histogram (if you don't need that much granular control over the partitions). If you need custom partitions, I'd strongly advise doing a View of your dataset that already aggregates the total time at the DIV_OrderNum level and then graph based on this with a simple ETL to bucket…
  • I like @MichelleH approach. I guess the only question after is what should you do if you happen to have an entry on a weekend for some weird reason, should you those be pushed to the next working day or what? (Hopefully this doesn't happen but is good to prepare for it). If I'm following her correctly after the work is…
  • Totally agree, this is a headeache because the 1st week of each month does not have the same number of business days in it, and this clearly affects your metrics. The hardest part would be to come up with a name that everyone would agree for that standalone day, as it'll also need to be it's own standalone month as for not…
  • Is doable, but it'll be tricky and depending on the card type used it might not be possible to get exactly what you need. The closer I could think of that would yield a similar result is the grouped lolipop chart or grouped bar chart, using a constant as your X axis. It'd look something like one of the following:
  • In this case, there are 2 possible paths you can take: If drill down capabilities are needed, then you'll need to transform your data using ETL and create a beast mode that have copies of each persons entries for each tenure year in which they should be counted for. This required a bit more set up but reduces the number of…
  • You can make your vertical card look more like a histogram by changing the bar width in the properties, that might be more visually pleasant for your use case.
  • Can you share an image (even if is a mock table in a spreadsheet) of what your ideal outcome would look like? Most likely, based on your description you'll need to use 1 formula per tenure year. If I'm following properly, lets say there have been 100 employees in the company all time and the current count by tenure are:…
  • @shreeyab if we zoom on only the row you highlighted, if I'm understanding properly, and assuming your Orders number is right (I just find it odd it has decimals), are you expecting to see the following? If this is the case, then you'll need to use the FIXED function, so that each day can look at more than the values for…