Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

previous day difference?

Hi,

I have a pivot table, which have days as one dimension. for each day i have to get a sum(value). in the next column i have to get the difference between the previous day and today. how can i achieve this??

please help..!!

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi,

In the script you will have to use previous function.

Regards,

Greeshma

View solution in original post

6 Replies
Anonymous
Not applicable
Author

Hi,

Try using above function

sum(value) - above(sum(value))

Regards,

Greeshma

Not applicable
Author

Hi..

thanks for your Reply...

can i get the same in script??

Not applicable
Author

you can use

today()-previous(today()) to achieve the same in script.

--

Amay

Anonymous
Not applicable
Author

Hi,

In the script you will have to use previous function.

Regards,

Greeshma

tresesco
MVP
MVP

Yes, you can. You have to use Previous() or Peek().

jonathandienst
Partner - Champion III
Partner - Champion III

You can, but that is not what you asked in your original post.

LOAD ....

     Sum(Value) - Previous(Sum(Value)) As Difference,

     ...

FROM ...

Group By <all other fields>

Order By <the relevant sort sorder>

Post a sample qvw and sample source data (text file or Xls) for more specific and detailed help.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein