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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
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)