Forum Discussion

warrencowan's avatar
warrencowan
Icon for Kudo Collector rankKudo Collector
9 years ago
Solved

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

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 differ...
  • ImkeF's avatar
    9 years ago

    Hi Warren,

    you need to connect your snapshot table to a date table. Then you can use a measure like this:

     

    Last Position= 
    CALCULATE( MAX( SnapshotTable[Position] )
                ,LASTNONBLANK( DATESBETWEEN( 'Date'[Date],BLANK(),LASTDATE( 'Date'[Date] ) )
                               ,CALCULATE( COUNT( SnapshotTable[Position] ))
                              )
              )