Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi PFB
| ID | COUNTRY | SALES |
| 1 | us | 100 |
| 2 | uk | 200 |
| 3 | us | 300 |
| 4 | ca | 400 |
| 5 | us | 500 |
| 6 | uk | 600 |
| 7 | us | 700 |
| 8 | ca | 800 |
| 9 | us | 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
| ID | COUNTRY | SALES |
| us_1 | us | 100 |
| uk_2 | uk | 200 |
| us_3 | us | 300 |
| ca_4 | ca | 400 |
| us_5 | us | 500 |
| uk_6 | uk | 600 |
| us_7 | us | 700 |
| ca_8 | ca | 800 |
| us_9 | us | 900 |
Thanks in Advance,
HI,
Load
COUNTRY&'_'&ID AS ID,
COUNTRY,
SALES
FROM Location;
Mark
Try this:
COUNTRY&'_'&ID as ID,
Regards,
Mayank
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:
