Best Of
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?
Re: Moved to beastmode section
@Katie_Forrest_2022 Your second beast mode is returning 0% because you are using a combination of OR and <> in you case statement, which is logically true for every row in your dataset. So for example, Discrepancy 121901 is not Discrepancy 121275, so it meets the criteria of your second exception.
I generally prefer to use additional WHEN... THEN... clauses in case statements over OR operators because it allows you to be much more surgical about classifying rows. It's also helpful that WHEN... THEN... clauses are evaluated top to bottom, whereas the order does not matter with criteria separated by OR operators.
I'd suggest structuring your beast mode like this:
count(distinct case
when `HOLD_NAME` in ('Discrepancy 121901','Discrepancy 121275', 'Discrepancy 121325','Discrepancy 121566')
then `Study Number`
when `HOLD_NAME` not in ('Incomplete Info' ,'PO – INVOICE HOLD', 'PENDING PO OVERRIDE' , 'CREDIT HOLD- INVOICE HOLD','CCCL Info Incomplete')
and `HOLD_NAME` not like '%Discrepancy%'
and `RETURNCODE` is not null
then `Study Number`
end) / count(distinct `Study Number`)
Re: Beastmode Including exceptions to % calculation
@Katie_Forrest_2022 Your second beast mode is returning 0% because you are using a combination of OR and <> in you case statement, which is logically true for every row in your dataset. So for example, Discrepancy 121901 is not Discrepancy 121275, so it meets the criteria of your second exception.
I generally prefer to use additional WHEN... THEN... clauses in case statements over OR operators because it allows you to be much more surgical about classifying rows. It's also helpful that WHEN... THEN... clauses are evaluated top to bottom, whereas the order does not matter with criteria separated by OR operators.
I'd suggest structuring your beast mode like this:
count(distinct case
when `HOLD_NAME` in ('Discrepancy 121901','Discrepancy 121275', 'Discrepancy 121325','Discrepancy 121566')
then `Study Number`
when `HOLD_NAME` not in ('Incomplete Info' ,'PO – INVOICE HOLD', 'PENDING PO OVERRIDE' , 'CREDIT HOLD- INVOICE HOLD','CCCL Info Incomplete')
and `HOLD_NAME` not like '%Discrepancy%'
and `RETURNCODE` is not null
then `Study Number`
end) / count(distinct `Study Number`)
Re: Broken Trend Chart With No Data
I have learned what I did wrong. Even though I did join the calendar, I had to add Group BY to the data to correctly count the number of items per day so that the chart can show 0 if I had no items in a month. I will mark my question as resolved.
Re: Has anyone had success in reporting on the notes object in Salesforce?
Say you go into the Salesforce Advanced connector and pick Browse Objects and Fields...if you put in "note" in the object dropdown as the wildcard, does the 'Note' object and others appear for you to try and connect to? Depending on the SF deployment there could be custom named note objects in use that you'd want to talk with the SF Administrator to help identify.
To identify whether it's a credentials issue, you could always try using SF's Data Loader tool to query directly against the note object using the same credential that's in Domo. If you're not returning data there, then it's probably going to pull all nulls in Domo as well.
Re: Convert all dates to last day of year
Not sure if it was a typo or not... but you have some commas in strange places. Try this:
STR_TO_DATE(CONCAT(`YEAR`,'-12-31'),'%Y-%m-%d')
Re: Convert all dates to last day of year
@apatten You also had spaces extra spaces in your date format qualifiers, which would prevent it from recognizing the dates. @ST_-Superman-_ 's formula should fix that.
Re: Combine columns except when null (i.e., skip null)
you could also try a formula tile to combine:
CASE WHEN `column A` IS NULL THEN `column B` WHEN `column B` IS NULL THEN `column A` ELSE CONCAT(`column A`, ', ', `column B`) END
... Sorry, just re-read your entire post and I noticed that you are combining 8 fields.
CONCAT(CASE WHEN `column A` is NULL then '' else concat(`column A`,', ') end,
CASE WHEN `column B` is NULL then '' else concat(`column B`,', ') end,
CASE WHEN `column C` is NULL then '' else concat(`column C`,', ') end,
CASE WHEN `column D` is NULL then '' else concat(`column D`,', ') end,
CASE WHEN `column E` is NULL then '' else concat(`column E`,', ') end,
CASE WHEN `column F` is NULL then '' else concat(`column F`,', ') end,
CASE WHEN `column G` is NULL then '' else concat(`column G`,', ') end,
CASE WHEN `column H` is NULL then '' else concat(`column H`,', ') end
)
Re: is there any way to move the "Totals" column in a DOMO Pivot Table Card?
@ellen The only work-around I can think of is to restructure your data in a dataflow to add total rows to your data with a value of "Total" in the field you want to define the columns in your pivot table. The challenge with that is that could get messy if you want to apply filters to your card.
Re: Is copying action nodes from one dataset to another possible yet?
@Domomon - If you're asking about copying actions from one Magic ETL dataflow to another, yes it is possible. Just select multiple actions on your ETL canvas and choose the option for Copy to Clipboard. Then navigate to the target Magic ETL dataflow and hit your normal keyboard paste command.
I hope that helps!
zcameron



