Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
MartinMendina
Contributor
Contributor

Making the Difference between a sum of values

I have Data like this

 

Date                                  Amount 1                       Account

2002-08-31                     5                                           1

2022-07-31                     3                                           1

2022-06-30                    3                                            1

2002-08-31                     1                                           2

2022-07-31                     2                                           2

2022-06-30                   1                                            2

 

 

If i sum everything by date I have

 

Date

2022-08-31 Sum(Amount1)=6

2022-07-31 Sum(Amount1)=5

2022-07-31 Sum(Amount1)=4

 

But then I need to create a line graph with Date as a measure and with height of the bar with

2022-08-31 Sum(Amount1, In date t)-Sum(Amount1,In date t-1)

 

The desired output of the example woul be a line graph with

 

2022-08-31 1 

2022-07-31 1

 

 

Thanks

Labels (1)
1 Solution

Accepted Solutions
rubenmarin

Hi, if you expand the measure there is an option to set a modifier, selecting 'Difference' will do the trick.

rubenmarin_0-1662308569473.png

 

View solution in original post

1 Reply
rubenmarin

Hi, if you expand the measure there is an option to set a modifier, selecting 'Difference' will do the trick.

rubenmarin_0-1662308569473.png