Forum Discussion

igaca's avatar
igaca
Helper III
9 years ago
Solved

Select Previous Row (Not utilizing Time Intelligence)

  Background:  I have a number of files each containing different levels of progress as based on manhours earned quantity as a portion of that budgeted (this is the measure titled "AGP % Comp" = DIV...
  • Vvelarde's avatar
    9 years ago

     

    igaca

     

    You have an index column, well using this you can get the previous value:

     

    PrevValue =
    VAR previndex =
        VALUES ( Table1[Index] ) - 1
    RETURN
        CALCULATE ( SUM ( Table1[Value] ) )
            - CALCULATE (
                SUM ( Table1[Value] ),
                FILTER ( ALL ( Table1 ), Table1[Index] = previndex )
            )

    Modified this to your tables and measures.