Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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
Community Manager
Community Manager

@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.

Sue Macaluso