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: 
apthansh
Creator
Creator

Concatenation and Cross Table

I have script as below...Is this correct was of concatenating ? as Description is not merging together ..

Expense:

Load

ID,

Description,

Expense,

Rent,

Non-Rent

from Table a;

OtherExpTmp:

crossTable(Description, Cost, 1)

LOAD

   ID

    Insurance,

   Rent,

   Depreciation,

   Other

FROM Table B;

Concatenate Expense:


Load

ID,

Description,

Cost,

if(wildmatch(Description,'*Rent*'),'Rent','Non-Rent') as [Rent-NonRent],

          if(wildmatch(Description,'*Rent*'),Description) as [Rent]

         

          Resident OtherExpTmp;

          drop table OtherExpTmp;

1 Reply
swuehl
MVP
MVP

Try

Concatenate (Expense)

Load

ID,

Description,

Cost,

if(wildmatch(Description,'*Rent*'),'Rent','Non-Rent') as [Rent-NonRent],

          if(wildmatch(Description,'*Rent*'),Description) as [Rent]

        

          Resident OtherExpTmp;

          drop table OtherExpTmp;