Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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;