Hi @Radi Soufan
Maybe you can change your dataset definition like this:
CREATE TABLE TESTTABLE
(Q VARCHAR(20),
INCOME INT )
insert into TESTTABLE
select 'Q32020' ,200
union all
select 'Q42020',300
union all
select 'Q12021',500
select * ,LAG(INCOME)OVER(ORDER BY (SELECT 1)) AS PREVIOUS_INCOME ,LAG(Q,1,'EMPTY') OVER(ORDER BY(SELECT 1)) AS PREVIOUS_Q from TESTTABLE
And use expression like =Feilds!INCOME .value - Feilds!PREVIOUS_INCOME .value to get the diff between current row and previous row.
If you have any questions,please feel free to contact me.
Best Regards,
Isabella
If the answer is the right solution, please click "Accept Answer" and upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.