Best Of
Re: Magic ETL formula Help
Have you tried using an alter column tile to change your data type to a string before your formula?
Re: Dashboard Filters
This is because you're attempting to compare the min and max values against each other. The only time this will be true is if you're looking at a records with a single Period End Date value. Once you go to the entire year the minimum value will never be the maximum value.
If you're wanting to display a message to have the user select a single period_end_date then I'd recommend using a count distinct in your case statement:
CASE WHEN COUNT(DISTINCT `Period_End_Date`) = 1 THEN DATE_FORMAT(MIN(`Period_End_Date`,'Week of %b %d, %Y','month of %b %d, %Y') ELSE 'Select a single Ending Period' END
Re: Extracting the Date Based on a pattern
Yes no problem , no need to say WHEN again ... This way should clear out the error
CASE WHEN LEFT(`ORDERSTATUS`,1) ='*' OR `ORDERSTATUS` like '%BAM%' THEN DATE_FORMAT(RIGHT(TRIM(`ORDERSTATUS`),10),'%m/%d/%Y') ELSE DATE_FORMAT(`orddate`,'%m/%d/%Y') end
Re: Extracting the Date Based on a pattern
- check for the * character in the string
- if present then get the last 10 characters from the strings (if always is the date at the end)
- convert it to a date format month , day and year
- if the character * is not present then use the other column
This beastmode should do the job
-- name your beastmode Soldorstockdate CASE WHEN INSTR(`orderstatus`, '*') >= 1 THEN DATE_FORMAT(RIGHT(TRIM(`orderstatus`),10),'%m/%d/%Y') ELSE DATE_FORMAT(`orddate`,'%m/%d/%Y') END
Re: Checking if first character is a *-Beast mode
If you are only looking at the first character in a string you can use the LEFT function, like this:
CASE WHEN LEFT(`orderstatus`,1) = '*' THEN 1 ELSE 0 END
Re: Writing Beast mode with Data label of Measures
Try something like this
CASE WHEN SUM(`Open qty`) > SUM(`onhandunits`) + SUM(`openpoqty`) THEN 1 ELSE 0 END
Re: Drill down to a separate dataset - matched by column?
Hi @svetlana
You can use a different dataset in your drill path card however if you wish to have the filter applied to the drill path card your filter field needs to be named the same within the two datasets.
Re: Drill down to a separate dataset - matched by column?
@svetlana do you have any filters applied in your top level card on columns that do not exist in your drill path card?
This has tripped me up before - when you drill down all the filters from your top level card are carried through (even though you don't see them explicitly) so if any don't exist on your drill path card dataset, it won't work.
mhouston
Re: How does the dashboard level filter work?
When you configure a card, if you're displaying multiple dates on the axis, you can choose which column you filter on based on the Date Range Field.
Typically the field will default to the first field you show on the card.



