Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
AlanM
Contributor II
Contributor II

Subtract columns from each other

Hello Guys,

the goal is to show the difference between column "IST" and "PLAN" in column "Abw.":

 

IST

PLAN

Abw.

Abw. %

Umsatz

       100 €

          80 €

?

?

Kosten

          80 €

          70 €

?

?

 

„Abw.“ should be able to be filled with an expression like:

Column A - Column B

it is possible to subtract columns from each other?

 

 

"Abw. %“ should be able to be filled with an expression like:

(Column A - Column B) / Column A

 

it is possible to subtract and divide columns from each other?

 

If not, any other ideas?

 

Thanks in advance.

 

Labels (4)
1 Solution

Accepted Solutions
Taoufiq_Zarra

if these are measures, we can use the Column function
as the attached example

Capture.JPG

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉

View solution in original post

5 Replies
agigliotti
Partner - Champion
Partner - Champion

Yes you can do it using column label or column number.

ex.  Abw.  =  IST - PLAN
or
Column(1) - Column(2)

I hope it can helps.

Taoufiq_Zarra

if these are measures, we can use the Column function
as the attached example

Capture.JPG

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
AlanM
Contributor II
Contributor II
Author

Many thanks for the quick help. Worked great!!

AlanM
Contributor II
Contributor II
Author

Hello,

when Sum(IST) and Sum(PLAN) not a measure  but a dimension. Is there also a formula?

 

Thanks in advance.

 

Nils9
Contributor II
Contributor II

I am also looking for a way to calculate two dimensions. have you found the solution?