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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
sivavasam
Contributor III
Contributor III

Subtraction

Id    class.    value  required A-B

123    A.       100.         -100 

123.    B.       200 

124     A.        500.        -100

124.    B.        600

Labels (1)
  • @Qlik

1 Solution

Accepted Solutions
Vegar
MVP
MVP

You could try this:

Sum ( {<class={'A'} >} value )- Sum ( {<class={'B'} >} value)

Or if you need to have it in a table associated described then you could try this:

Sum ( {<class={'A'} >} total <Id> value )- Sum ( {<class={'B'} >} total <Id> value)

View solution in original post

1 Reply
Vegar
MVP
MVP

You could try this:

Sum ( {<class={'A'} >} value )- Sum ( {<class={'B'} >} value)

Or if you need to have it in a table associated described then you could try this:

Sum ( {<class={'A'} >} total <Id> value )- Sum ( {<class={'B'} >} total <Id> value)