Display values continuously over time with existing gaps in FACT data table
Hi All,
I have the following use case:
I want to visualize the overall stock level of 2 different products over time. The source for the stock levels is a FACT table containing the log data of the stock movements. The FACT table is connected to a date dimension table containing the date of every day (see screenshot attached). However, if there was not a movement for a specific product, there is no entry in the FACT table.
Example:
01.01.22: stock level = 5
02.01.22: stock level = 4
06.01.22: stock level = 10
When displaying those stock levels on a line/column chart, I only display the 3 days by default. There exists a "time gap" in the data and I am looking for a way to display the stock level for every day as a "continuous" rate over time. As there are no values in the FACT table for 03/04/05th January, I would like to display the latest value available (in this case the value stock level = 4).
Are there any ways to solve this on the dashboard side (maybe with function/script)?
I have already enabled the widget option "Display missing values as 0" but instead of displaying a 0, I would like to display the latest available value from the FACT table.
Please also see the screenshots attached.
Happy about any kind of suggestions or tips! 🙂