Best Of
Re: Creating an Artificial downtime for maintenance for only week and work hours
@jaeW_at_Onyx - He doesn't want to see the datetime difference though. He is looking for the amount of work hours between the two date time fields. So, if the workday is 9am-5pm. Then the time he would want for a job starting on Friday at 3pm and ending the following monday at 11am is 4. If you just did datetime diff, you would get 68 hours (minus the 48 hours for the weekend) and you have 20. Most of those hours were not during work hours.
Re: Displaying effort per day
@harropda - Are you looking for help in creating the new dataset? Or just if anyone has other ideas on how to accomplish this task? From what you have described, creating that new dataset should allow you to create the analysis you are lookin for.
Ultimately, if you want your graph to display daily data, your dataset will need to be set up with 1 row per day. In this case, one row per day for each Story ID as you have described.
Re: sum case
I think that you could do this with a Pareto. Place BrandName in the Pareto Name and Sales in the Pareto Value. The graph will then tell you the % of total sales.
However, if it needs to be a Bar graph, you can use a formula like this:
SUM(Sales) / SUM(SUM(Sales)) FIXED (FILTER DENY BrandName)
Using this formula should let you place the brand name on the x axis and this value in the y axis to create your desired graph.
If you are running into issues, it would be helpful to see what your dataset looks like and how you expect to visualize your data.
How to "Improve" the Histogram Chart
I have always struggled with the histogram barchart in Domo. I love the idea of the histogram, but I always end up with very odd bucket ranges. You also don't get an option of adding a series to that chart. Here is an example of a histogram I am talking about:
My "improvement" is to use the scatter plot chart type.
For my x-axis, I create a calculated field. In my case, I wanted to bucket my data in batches of 10,000 for a field called StepPosition. So I used this code:
CONCAT(ROUND(SPUH step loss StepPosition/10000, 0),'0-', ROUND(SPUH step loss StepPosition/10000, 0)+1,'0k')
For my y-Axis, I place the field StepPosition and aggregate to Count.
I can also add a series, in this case a description of the position based on the value. The output looks like this:
This "Histogram" has much more clearly defined bins and is easier to read. By using the Scatter Plot, you can also have more than 20 "bins".
Re: Dynamically generate last day of prior quarter based on today's date.
CASE
WHEN QUARTER(CURDATE())=1 THEN STR_TO_DATE(CONCAT('12-31-',YEAR(CURDATE())-1), '%m-%d-%Y')
WHEN QUARTER(CURDATE())=2 THEN STR_TO_DATE(CONCAT('03-31-',YEAR(CURDATE())), '%m-%d-%Y')
WHEN QUARTER(CURDATE())=3 THEN STR_TO_DATE(CONCAT('06-30-',YEAR(CURDATE())), '%m-%d-%Y')
WHEN QUARTER(CURDATE())=4 THEN STR_TO_DATE(CONCAT('09-30-',YEAR(CURDATE())), '%m-%d-%Y')
END
Re: Unable to Display Stacked Bar Due to Partition Beast Mode
@ST_-Superman-_ Thanks for replying! Sadly, I deleted this card, so I'm not sure if I had anything in the sort section. I believe I removed everything in sort and chose specific columns to see if that was affecting it, since I know Domo won't display values grouped together if they have different values in the columns that you're sorting on. I think the issue was something around the multiple partitions that conflicted or maybe Domo can only partition so many times?
I ended up trying a different approach by using some group by calculations in a dataflow for the different time period scenarios and then setup a variable to have the user select how they wanted to display, like months, quarters, years, etc. That ended up working pretty well.
I appreciate you reaching out to help tho!
Re: How do I create a calculated column based off information from another dataset?
You tagged this appropriately. For this solution you will need to join the two datasets either with an append or combine tile in MagicETL. (you could also use a MySQL dataflow if you are more familiar with SQL) From there you can do some window functions to calculate the total sales in prior 30 days, etc.
It's tough to get too technical on the solution without having a sample of your datasets, or a clearer understanding of their structure.
Re: filter large datasets
@seanwayland - I think the easiest way to do this would be with using the Views Explorer. Simply create a dataset view that filters your large dataset down to a single report (or group of reports if that makes sense) and build content or share from the dataset views. Then the page will only need to load in the much smaller dataset view when loading.
Re: Beast mode for dates
@mroker - in this case, because you have 4 dates in January…
Would you only want to see the customers associated with Jan 01, which would be 20? If so, then @MarkSnodgrass has a great solution for you.
Or do you want to see the sum of all the days (20, 22, 26, 29) or 97? or the average 24.25?



