Forum Discussion
Equivalent to OFFSET excel funcion
- 4 years ago
Hi vallrebe ,
You can try to create a calculated column and get the contents of the previous row through TL sorting. Similar DAX as follows.
col = CALCULATE ( SUM ( 'Table1'[Dilution] ), FILTER ( 'Table', 'Table'[TL] = EARLIER ( 'Table'[TL] ) - 1 && 'Table'[ID] = EARLIER ( 'Table'[ID] ) ))If the problem persists, please create pbix with the sample data and share the link, and describe the results you expect.
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi vallrebe ,
You can try to create a calculated column and get the contents of the previous row through TL sorting. Similar DAX as follows.
col = CALCULATE (
SUM ( 'Table1'[Dilution] ),
FILTER (
'Table',
'Table'[TL]
= EARLIER ( 'Table'[TL] ) - 1
&& 'Table'[ID] = EARLIER ( 'Table'[ID] )
))
If the problem persists, please create pbix with the sample data and share the link, and describe the results you expect.
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.