Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
caniwhz1
Contributor III
Contributor III

calculation column

Hi,

I hope I'm in the right Forum.

I read in Qlikview two columns. Now I want to add a third column in the created table, which determines the quotient per line from the values ​​column 1 and two. Unfortunately, I do not find the function to insert an empty column to insert the appropriate formula there.

Can anyone help me?

Thank you very much in advance.

Cathleen

1 Solution

Accepted Solutions
YoussefBelloum
Champion
Champion

so you will need this expression:

=sum(preis/menge)


PFA



View solution in original post

9 Replies
YoussefBelloum
Champion
Champion

Hi,

can you attach your app? or some screenshot to see what you have

caniwhz1
Contributor III
Contributor III
Author

Hi

thats a very simple example. What I need is the 3. column with the result of Preis/Menge

YoussefBelloum
Champion
Champion

You don't need to create another column, you just need an expression:

=sum(preis*menge)


Please find attached



caniwhz1
Contributor III
Contributor III
Author

Hi. I need the following result in a separate column (an in a further step the result in the Diagramm):

Preis  Menge   Preis pro (I need this column)

4,58   4,01       1,14

YoussefBelloum
Champion
Champion

do you calculate the "preis pro" on qlik ? or do you bring this third column from your source ??

if you want to calculate it, what is the calculation rule ?

caniwhz1
Contributor III
Contributor III
Author

Hi calculation rule is: Preis / Menge

In my source isn't this column

YoussefBelloum
Champion
Champion

so you will need this expression:

=sum(preis/menge)


PFA



caniwhz1
Contributor III
Contributor III
Author

It works. Thank you. The main Problem was, that I used the new object "table box" and not the table Option in the diagram box.

Have a nice day

YoussefBelloum
Champion
Champion

I see, as you can see you can't use expressions on tablebox

You're welcome