Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 213819

Fill in blank values in time series data, based on last value.

$
0
0

Hi everyone

 

I am trying to create time series visuals (matrix and line charts primarly) from a snapshot table. Product have a position for the day, but different products in the table have different frequency schedules and days on which their position is recorded. I've pasted an example below. 

 

snapshot tablesnapshot table

I have linked this table to a seperate date table in the model, but if I try to put this data in a matrix it highlights the blank values on the dates where there is no data. In line graphs this will produce very peaky and troughy lines for the blank date too.

 

snapshot table in matrixsnapshot table in matrix

 

I want to create a formula that populates each blank date cell with the value of the position from the most recent snapshot, and ideally looks further back than the last series of the dates that are filtered into the visual. I've illustrated below. 

matrix populated with formula fieldmatrix populated with formula field

The black dates in the above table are the ones from the snapshot table where as the orange ones are the ones I am trying to create from looking back for the last data where a vlaue is recorded. The green numbers are doing the same but I have highlghted them another colour to highlight that they are looking further back than the dates in the current table.

 

I am presuming I will need to create an alternative measure using look back functions like lastdate, last/first nonblank, or something, and chart this measure instead. But after days of mistakes I am struggling.

 

Any help warmly appreciated.

 

 

Warren


Viewing all articles
Browse latest Browse all 213819

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>