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

dummy field value

Hi all,

I have a field called "Country" which has values [germany,italy,spain,france,UK,US] and sales field

i want to create one more field value called " Europe" in country which will have sum of values for germany italy spain france.

how to achieve this?

 

 

Labels (2)
1 Solution

Accepted Solutions
Arthur_Fong
Partner - Specialist III
Partner - Specialist III

Try this:

Raw:
load
* inline [
Region,Sales
Germany,100
Italy,100
Spain,100
France,100
UK,100
US,100
];


Concatenate(Raw)
Data:
load 'Europe' as Region,sum(Sales)as Sales
resident Raw

where match(Region,'Germany','Italy','Spain','France');

View solution in original post

3 Replies
Arthur_Fong
Partner - Specialist III
Partner - Specialist III

Try this:

Raw:
load
* inline [
Region,Sales
Germany,100
Italy,100
Spain,100
France,100
UK,100
US,100
];


Concatenate(Raw)
Data:
load 'Europe' as Region,sum(Sales)as Sales
resident Raw

where match(Region,'Germany','Italy','Spain','France');

Surya
Creator II
Creator II

concatinate(OldTable)

load * inline [ 

Country,Sales

Europe,1000

];

//Write this code below of existing just do concatinate

Brett_Bleess
Former Employee
Former Employee

Sanju, do not forget to come back to the thread and mark any posts that helped you with things by using the Accept as Solution button on those posts.  If you are still working on things and need further assistance, please leave an update as to where things stand.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.