Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Moo2
Contributor
Contributor

Create New Field in Data Load Editor by Subtracting two other columns

Hi everyone,

I have an excel sheet with various values. I want to create a new field in the data load editor that is the value of one columns subtracted from another column. For example:

 

LOAD

Value,

Price,

SUM(Price-Value)

as Gain

From....

This does not work but has the idea behind what I am trying to do, I am pretty new to Qlik so I was hoping someone could help me out? Thanks ahead of time!

Labels (3)
1 Solution

Accepted Solutions
Digvijay_Singh

You can just do as below -

Price-Value as Gain

From ...

Do you need to use 'SUM' in the script, normally we use aggregated functions in the chart measure, if you need aggregation in the script then you would need group by clause as well in the load statement.

View solution in original post

2 Replies
Digvijay_Singh

You can just do as below -

Price-Value as Gain

From ...

Do you need to use 'SUM' in the script, normally we use aggregated functions in the chart measure, if you need aggregation in the script then you would need group by clause as well in the load statement.

Moo2
Contributor
Contributor
Author

Oh is it really that easy? Thank you so much! I feel like I tried that earlier but probably forgot a comma somewhere and just decided it can't be that simple. It seems to work!