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: 
jaimeoconor
Contributor
Contributor

Subtract by values

Hi,

I have, for example, the following data:

 

Asset   Performance 

Asset 1     5%

Asset 2     3%

Asset 3     8%

Asset 4     10%

 

I would like to create a table showing every Asset and the result of Asset x Performance - Asset 1 Performance. The result should be the following:

Asset 1  0%

Asset 2  -2%

Asset 3  3%

Asset 4   5%

I wrote Sum([Performance])-sum({<Asset={'Asset 1'}>}[Performance]) and, as a result, only Asset 1 is being subtracted.

 

Many thanks in advance 

Labels (1)
1 Reply
Sue_Macaluso
Former Employee
Former Employee

@jaimeoconor  Are you using Qlik View or Sense?  I would like to move this into the correct product forum.  This forum is typically for platform-related discussions.

Did you find a solution to your question? Mark the solution as accepted : and if you found it useful, press the like button!