Best Of
Re: Combining data into one pie chart
@louiswatson How are your 6 data sources related? Without seeing your data and what you are trying to measure, you will likely need to use the Append Data tile in MagicETL.
Re: Calculate one value against multiple values in different columns
@mHejl I think @jaeW_at_Onyx has a good suggestion for you. If that is not working out, it would be helpful if you showed some examples so that we can understand what your data looks like and what output you are trying to get to.
Re: Calculate one value against multiple values in different columns
if it were me i would unpivot the data (Magic ETL) to collapse the values in columns 2, 3, and 4 into one column then do a windowed MIN function with the Rank and Window tile.
If you don't want to restructure your data, you could see if Magic or Beast Modes have an implementation of the LEAST() function https://www.w3schools.com/sql/func_mysql_least.asp
Re: Is there a way to make column headings on the DOMO table cards dynamic?
@charles , typically we'll see users have Current Month and Previous Month as column titles.
you could still adopt @MichelleH 's suggestion if you limit your dataset via filters to the "last x months" then you can still display months in your columns, and the data filter restricts you to the correct set of months.
Re: % Sold of Available Inventory (aka Sell-Through)
I think we can get this to work if you can add a running total column to your dataflow. If you are using ETL2.0 than you can copy and paste the code below to show you an example.
{"contentType":"domo/dataflow-actions","data":[{"name":"runningTotals","id":"524fe3a4-94e3-45bc-9a4d-6a4a64b6b7b4","type":"WindowAction","gui":{"x":984,"y":108,"color":null,"colorSource":null},"dependsOn":["e6d73628-6753-4070-8805-4b94904f79f2"],"removeByDefault":false,"notes":[],"partitionedAggregation":false,"additions":[{"name":"totalOrdersToDate","operation":{"type":"FRAMED","operationType":"SUM","column":"orderQty","preceding":null,"following":0}}],"orderRules":[{"column":"orderDate","caseSensitive":false,"ascending":true}],"groupRules":[{"column":"Store","caseSensitive":false},{"column":"Product","caseSensitive":false}]}]}
Once you have the running total for OrderQty and the Qty Available joined to your order data, the table should look something like this:
You can see that totalOrdersToDate is a running total by store of the orderQty field. Also, Total Starting Inventory is repeated for every line of data for a store in that period.
Now, to calculate Sell Through:
sum(`totalOrdersToDate`) / sum(AVG(`Initial_Inventory_Qty`) FIXED (BY `Store`))
I think your table had some calculation errors for the sell-through values. (I forgot, I also added another formula to show the TotalStartingInventory in the table above )
sum(AVG(`Initial_Inventory_Qty`) fixed (by `Store`))
Or, you could just show the sell through by date:
Re: % Sold of Available Inventory (aka Sell-Through)
@chapman - I'm not sure that I understand your sell-through table. For 2/21 you show that store A sold through 2% of its inventory (1/50) and Store B sold 0% (0/60). However, for All Stores you say 2%... shouldn't the calculation be (1/110)? 0.9%
Re: % Sold of Available Inventory (aka Sell-Through)
consider using window functions to get the desired result.
if you UNION your data (Consumption UNION to Inventory with a column activity_type = "consumption" or "inventory" so you can tell them apart) as @MarkSnodgrass recommended and structure your data such that you have Activity_Date and Activity_YearMonth,
you could construct your metric as a window function
sum(sum(consumption_amount)) over (partition by item, activity_yearMonth order by activity_date asc) -- this will give you the cumulative sum of your consumption for the month.
sum(sum(inventory)) over (partition by item, activity_yearMonth order by activity_date asc) will give you available inventory.
you can either choose to include activity_yearMonth in the partition clause or exclude depending on if you want the counter to reset every month.
Re: FIXED functions are difficult to understand and should be rolled into WINDOW functions
@chapman just write a CASE statement.
SUM(SUM(case when company = 'abc' then `totalSales` end ) FIXED (FILTER DENY company))
Re: Card Analyzer - Date Filter Options
Maybe an "include / exclude current_date" option.





