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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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)