Forum Discussion

nicholastrausch's avatar
nicholastrausch
Frequent Visitor
6 years ago
Solved

Return value from previous row

I know that has been addressed a number of times in here.. but I just can't seem to make those examples work.  Need to simply return the value from previous row.  

 

 

 

 

 

Previous Row =
IF (
    'Segment Data'[Segment ID] = 1,
    0,
    CALCULATE (
        MAX ( 'Segment Data'[Segment Total] ),
        FILTER (
            'Segment Data',
            'Segment Data'[Segment ID] = EARLIER ( 'Segment Data'[Segment ID] )
        )
    )
)

 

 

 

Somethings wrong with my Filter in the Calculate, but I can't work it out.  Any help is appreciated. 

2 Replies