Best Of
Re: Need Ideas/Help for Creating a Card
Hi @user077529
How is your raw data formatted? Do you have a single column for the service type and multiple records for each order or are the different services separate column values and you have one row for each order?
Re: HTML Code shows with output values in filter or export of the card
Hi @User2021
There's nothing you can do as the card will interpret the beast mode but the export doesn't. I had posted an idea specifically for hyperlinks in the past but it was closed so I logged a new idea for it (https://dojo.domo.com/discussion/53947/format-as-hyperlink/p1?new=1). Typically what I would do is have a value only column and the HTML formatted column for export purposes.
Re: Convert String To Date Format
Hi @micheleb
You'll need to put everything in the same format and then convert it to a date. You can convert the date strings using a REGEX_REPLACE function in a formula tile:
REGEXP_REPLACE(`Date`, '^(\d{2})\/(\d{2})\/(\d{2})$', '$1/$2/20$3')
This will check for a 2 digits / 2 digits / 2 digits format and then put a 20 in the last field to default to this millennium so that you have a 4 digit year. If it doesn't match the format it will still just return the string so your MM/DD/YYYY format strings will be untouched.
Once they're in the same format you can then use an Alter Columns tile to change the type of the date column from string to Date.
Re: Summary Number Format in Notebook Card
@MarkSnodgrass thank you! I didn't know this card type existed but I think it's exactly what I was looking for!
mhouston
Re: Summary Number Format in Notebook Card
@mhouston I'm using the dynamic textbox card in my example, not the notebook card. It has color options available.
Re: Has anyone been able access salesforce historical data?
@Canioagain you can get the opportunity history and field history using the domo salesforce connector and using the "Browse objects and field" option and selecting OpportunityHistory and OpportunityFieldHistory. I did a basic writeup when I built this that outlined the main logical steps of processing - let me know if you would like to see that, I'd be happy to share.
mhouston
Re: Seasonality Chart
That's a bummer it doesn't show the next level down. To get this to display in a pivot table, you need to ask your CSM to enable window functions in beast modes, if it isn't already enabled. It is not enabled by default. Then you can create this beast mode with this formula to get the percent of total for each month by region:
COUNT(`caseid`) / SUM(COUNT(`caseid`)) OVER (PARTITION BY `region`)
Re: Seasonality Chart
To your thought about heatmaps, I do like to use those and there are two different heatmap options: Heat Map under Other Charts and Heatmap Table under Tables and Textboxes. With the Heat Map under Other Charts, you can put the Month in Category 1 and the region in Category 2 and the count of case id's in the values section. The "heat" will show you where the highest areas are.
The Heatmap table would require you to create a beast mode for each month of the year and be dragged over as columns. You could select the independent column ranges under the scale properties to have each month be "heated" individually if you want. Your beast mode to get the percent for each month for each region would look like this:
SUM(CASE WHEN MONTH(`date`) = 1 THEN 1 ELSE 0 END) / COUNT(`caseid`)
This would be the beast mode for January. You would need to do one for each month and change the month = value each time.
Hope this helps.
Re: Column Calculation in pivot table
You may want to think about restructuring your data and using a date dimension to calculate the current day, last year, two years ago etc for your data points. Then you can use a beast mode to pull only the offsets to you want. This will then allow you to be able to calculate the current year from a year or two years ago. The downside is that you can't easily have your columns say the year but it'd be something like "Last Year" or "Two Years Ago". I've done a write up previously on this methodology here: A more flexible way to do Period over Period comparisons

