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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
kalyandg
Partner - Creator III
Partner - Creator III

Merging fields into fields

Hi All,

I have to extract the below fields from random data as the following script

"if(Acct_Type='PL',if(WildMatch(AcctName, '*TAX*')=1,AcctName)) as Tax,

if(Acct_Type='PL',if(WildMatch(AcctName, '*INTEREST*')=1,AcctName)) as Interest,

if(Acct_Type='PL',if(Category='Cost of Materials Consumed',Category)) as COGS,

if(Acct_Type='PL',if([Sub Category]='Other Expenses',[Sub Category])) as OtherExpenses,

if(Acct_Type='PL',if(Category='Revenue',Category)) as Revenue,"

Now I have to merge all these fields into a single field, how can I do?

Please help me to solve this.

Thanks in Advance,

Kalyan

1 Reply
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Use a preceding load

load *, Tax&Interest&COGS&OtherExpenses&Revenue as NewField;

load ...your current load statements here...


talk is cheap, supply exceeds demand