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

Announcements
FLASH SALE: Save $500! Use code FLASH2026 at checkout until Feb 14th at 11:59PM ET. Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
bharatkishore
Creator III
Creator III

Change Column Names

Hi All,

I have a Market field,

In that market field i have Asean Pac, Benelux etc, Now i need to get instead of Asean Pac it should be changed to ANZ, SEA, Korea,Indonesia..


Can you help me how to do it.


Thanks,

Bharat

Labels (1)
28 Replies
pradosh_thakur
Master II
Master II

Hi Bharat.

What i meant is From market if it is a then to a1,b then to b1 like this the complete set. Or else we will have some filed value whose mapping equivalent we dont know. If you can provide that in a excel we can use it in apply map.

Learning never stops.
tresB
Champion III
Champion III

Single value can't be broken down into multiple without proper logic. Try to share a sample data set with expected output.

tresB
Champion III
Champion III

With a more realistic sample data set, the proposition could have been better. With this sample, you could probably try like:

Load

          If( Market='Asia Pac', Region, Market) as Market

In case, this is not what you need, please try to explain with more data columns.

bharatkishore
Creator III
Creator III
Author

Hi Tresesco,

I have a Market and Region and there in region i have ANZ, Indonesia,Korea ,SEA and Blank.

Now in Maket i have Africa, Asean Pac,Benelux,CEE, Dach etc.

Now when in Market instead of Asean Pac it should be changed to ANZ, Indonesia, Korea , SEA and rest of the markets should be there.

PFA app and please let me know if you need anything more.

Thanks,

Bharat

pradosh_thakur
Master II
Master II

LOAD Cluster,

     Country,

     Denominator,

     Entitlement,

     GSS,

     KPIScope,

     Market,

     Metric,

     MG,

     Modality,

     Numerator,

     Period,

     if(len(trim(Region))>0,Region,Market) as Region

FROM

Target.qvd

(qvd);

Learning never stops.
surendraj
Specialist
Specialist

If( Market='Asia Pac', 'ANZ  | Indonesia | Korea | SEA ', Market) as Market

After that you can devide the string 'ANZ  | Indonesia | Korea | SEA ' by make use of sub field function in preceding load.

subfield(Market,'|') as Market


bharatkishore
Creator III
Creator III
Author

Hi Tresesco,

Thanks a lot..

Only problem i have is Now in Market i have ANZ  and SEA can you please help me how  to re-name it to Australia and NewZealand for ANZ  and South East Asia for SEA.

Thanks,

Bharat

bharatkishore
Creator III
Creator III
Author

Hi Pradosh,

Thanks a lot..

Can you please help me how  to re-name it to Australia and NewZealand for ANZ  and South East Asia for SEA for Market field

Thanks,

Bharat

pradosh_thakur
Master II
Master II

this may be

LOAD Cluster,

     Country,

     Denominator,

     Entitlement,

     GSS,

     KPIScope,

     pick(MATCH(Region,'ANZ','SEA')+1,Market,'Austrailia and Newzeland','South east asia')as Market,

     Metric,

     MG,

     Modality,

     Numerator,

     Period,

     if(len(trim(Region))>0,Region,Market) as Region

FROM

Target.qvd

(qvd);

use The If in Region if want to replace The blank else not,.

Learning never stops.
bharatkishore
Creator III
Creator III
Author

Hi Pradosh,

This is working fine, but the region has been changed to Market fields.

Region fields should not be changed.

Please let me know how to do it.

Thanks,

Bharat