Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
js99
Contributor II
Contributor II

Add Field on Table with Delta Calculation for Existing Field

Hi All, a novice Qlik Sense User here seeking some help please.... basically, I would like to add a calculated field within an existing table showing the delta calculation of an existing field. Is there an effective way to creating a delta column showing the difference between 2  counts of adjacent timestamps? Snapshot provided. for reference. Thanks in advance.

Delta Count Table.JPG

1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Good to know that you got the answer.

Please mark the relevant post as correct.

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!

View solution in original post

7 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi Try below expression.

Count(Value) - Above(Count(Value))

 

 

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
js99
Contributor II
Contributor II
Author

Hi Kaushik, 

I'm getting "Invalid function: Above".

Thanks.

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Which chart type are you using?

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
js99
Contributor II
Contributor II
Author

Hi, I 'm trying to working it out under the "Data" tab (not "Analysis"), hence, no charts involved at this point. Thanks.

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

In that case you should use Previous instead of Above.

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
js99
Contributor II
Contributor II
Author

I think I found the solution and I used:

Count - Above(Count)

The expression has to be done within the Table under "Analysis" tab (not the Table under "Data" tab ) where I am trying to work the expression out . 😊

 

Many thanks for your help, Kaushik!  Much appreciated.

 

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Good to know that you got the answer.

Please mark the relevant post as correct.

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!