Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have a table that shows number of resignations week on week. Each date listed below is a Friday. The sample data looks like below.
DateValue Resignations
5/5/2023 5
5/12/2023 19
5/19/2023 12
5/26/2023 7
I would like to calculate a new column showing the % difference. Example. (Current -Previous)/Previous. The first row in the table can also have the same formula as the previous week's data will be available in the data source although not listed in the table. Please help.
Hi, try using 'above' function.
Thanks Raja. The 'above' function works only until the 2nd row. The first row comes as blank. I would also like to compare the resignation on first row with previous week and populate the percentage.
hi, then you need to create field in backend.
Here is something I tried. Hope this helps.
Use this as a measure:-
(Resignations - aggr(Above(Resignations),DateValue))/aggr(Above(Resignations),DateValue)
and then You can use formatting to Change it to percent