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: 
Not applicable

Concatenation

Hi All,

I have Excel files Demand, Demand14.

Demand Contains Project Number, Project Name and Demand14 contains Project Number, Project Name in one sheet(Demand14) and Project Number in another sheet(PNum).

My requirement is i want to get the project details which are mentioned in PNum sheet from Demand14.

I want to add them to Demand data

Totally My Req is as follows

Project NumberProject Name
1A
2B
3C
4D
5E
11K
12L
13M
14N
15O

I'm attaching my EXCel files and QVW, Please have a look and give me some suggestion.

Thanks,

Chiru

1 Solution

Accepted Solutions
CELAMBARASAN
Partner - Champion
Partner - Champion

You could use

Load

     ProjectNumber

From PNum sheet.

Left Join

Load

     ProjectNumber, //Field should be same as the above script ProjectNumber

     ProjectName

From Demand14 Sheet;

Concatenate result to the table which is loaded from Demand.

Or something like

Demand:

LOAD *

FROM

[$(FilePath)\$(Demand14ReportName)]

(ooxml, embedded labels, table is [$(Demand14ReportSheetName)]);

Inner Join

LOAD

[Project Number]

FROM

[$(FilePath)\$(Demand14ReportName)]

(ooxml, embedded labels, table is [$(Demand14ProjReportSheetName)]);

Concatenate(Demand)

LOAD *

FROM

[$(FilePath)\$(DemandReportName)]

(ooxml, embedded labels, table is [$(DemandReportSheetName)]);

View solution in original post

6 Replies
Not applicable
Author

rename it  by using 'as'  and then try to use

Not applicable
Author

Hi

Check attached file or script below.

Change PATH to your directory.

SET PATH = 'C:\Users\IA-User\Desktop\'; ////CHANGE DIRECTORY HERE

DEMAND:

LOAD [Project Number],

     [Project Name]

FROM

$(PATH)Demand14.xlsx

(ooxml, embedded labels, table is Demand14);

Right Join(DEMAND)

LOAD [Project Number]

FROM

$(PATH)Demand14.xlsx

(ooxml, embedded labels, table is PNum);

join(DEMAND) ////Concatinate here is okay too

LOAD [Project Number],

     [Project Name]

FROM

$(PATH)Demand.xlsx

(ooxml, embedded labels, table is Demand);

Not applicable
Author

Hi,

Swap the table loading order. Load Demand14 with join first and then load the Demand table with concatenation.

CELAMBARASAN
Partner - Champion
Partner - Champion

You could use

Load

     ProjectNumber

From PNum sheet.

Left Join

Load

     ProjectNumber, //Field should be same as the above script ProjectNumber

     ProjectName

From Demand14 Sheet;

Concatenate result to the table which is loaded from Demand.

Or something like

Demand:

LOAD *

FROM

[$(FilePath)\$(Demand14ReportName)]

(ooxml, embedded labels, table is [$(Demand14ReportSheetName)]);

Inner Join

LOAD

[Project Number]

FROM

[$(FilePath)\$(Demand14ReportName)]

(ooxml, embedded labels, table is [$(Demand14ProjReportSheetName)]);

Concatenate(Demand)

LOAD *

FROM

[$(FilePath)\$(DemandReportName)]

(ooxml, embedded labels, table is [$(DemandReportSheetName)]);

Not applicable
Author

Hi Adhimulam,

Thanks for Your reply, This is exactly what i needed.

Thanks to all who gave suggestion to me.

Thanks,

Vamsi.

Not applicable
Author

Hi

When you load the files first, load Demand.xlsx file

LOAD [Project Number],
    
[Project Name]
FROM
Demand.xlsx
(
ooxml, embedded labels, table is Sheet1);

When you load second file Demand14.xlsx file, In file wizard: Type box change the default sheet to Pnum sheet in Tables dropdown box and click finish

Directory;
LOAD [Project Number]
FROM
Demand14.xlsx
(
ooxml, embedded labels, table is PNum);

This is what I understood when you read your query.

If I am wrong, please expalin the query.

Thanks

prasadhet