Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
pranit_somne
Contributor
Contributor

Convert values from column to row

Hi All,

I have data like below table,

IDBusiness
15Commercial Banking,Global Function-Risk (including Compliance),Retail Banking and Wealth Management
26Commercial Banking,Retail Banking and Wealth Management
43Global Banking and Markets,Global Functions
46Global Banking and Markets
49Global Banking and Markets

 

I want to convert it into below data,

IDBusiness
15Commercial Banking
15Global Function-Risk (including Compliance)
15Retail Banking and Wealth Management
26Commercial Banking
26Retail Banking and Wealth Management
43Global Banking and Markets
43Global Functions
46Global Banking and Markets
49Global Banking and Markets

 

Can anyone please help.

2 Replies
jpenuliar
Partner - Specialist III
Partner - Specialist III

 

You can use qlik function Subfield to achieve your requirement.

link: https://help.qlik.com/en-US/sense/November2019/Subsystems/Hub/Content/Sense_Hub/Scripting/StringFunc...

jonathandienst
Partner - Champion III
Partner - Champion III

Yup - the 2 parameter version of SubField():

LOAD ID,
SubField(Business, ',') as Business
FROM ....

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein