Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
vinod2086
Creator II
Creator II

How to append records based on field

Hi PFB

 

IDCOUNTRYSALES
1us100
2uk200
3us300
4ca400
5us500
6uk600
7us700
8ca800
9us

900

in above sheet i have mentioned ID,COUNTRY,SALES my requirement is if ID related to US it should be display US_id like that i have some confusion how to write condition  and expected output is

 

IDCOUNTRYSALES
us_1us100
uk_2uk200
us_3us300
ca_4ca400
us_5us500
uk_6uk600
us_7us700
ca_8ca800
us_9us900

Thanks in Advance,

3 Replies
Mark_Little
Luminary
Luminary

HI,

Load

     COUNTRY&'_'&ID AS ID,

     COUNTRY,

     SALES

FROM Location;

Mark

mayankraoka
Specialist
Specialist

Try this:

COUNTRY&'_'&ID as ID,

Regards,

Mayank

MindaugasBacius
Partner - Specialist III
Partner - Specialist III

Do like this:

LOAD ID & '_' & COUNTRY as ID,

     COUNTRY,

     SALES

FROM

[https://community.qlik.com/thread/228216]

(html, codepage is 1257, embedded labels, table is @1);

The result would be like:

Screenshot_1.jpg