Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Reddy
Contributor
Contributor

Adding field in Qlikview

How can we add 2 fields in Qlikview and the 3rd field should be the sum of first 2 fields

Example 

Sales 2019,sales2020

10,20

20,30

40,50

 

 

I need a table box with the fields 

Sales 2019,sales 2020,total sales 

10,20,30

 

Labels (2)
2 Replies
MayilVahanan

Hi Reddy

these are dimensions - Sales 2019,sales 2020

Measures: Sum(Sales 2019+ sales 2020) 

 

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Vegar
MVP
MVP

If you want to have it in a listbox then you would need to create the sum field in your load script. Like this:

LOAD

[Sales 2019],

[sales 2020],

[Sales 2019]+ [sales 2020] as [Total sales]

FROM Source;

It is also possible to get these value in the front end without script changed. You need to change object Type from table box to straight table.

Add [Sales 2019],[sales 2020] as dimensions and calculate [total sales] as sum ([Sales 2019]+[sales 2020])