Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

concatenate two tables

i need your help,

i have three tables and want the last two tables concatenate with the first one

only with the table 2 it works but when i load the third table i get a syn table and the values are wrong

pleas help me

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

Hi

If you are getting a syn table, then table 3 is not concatenating. Make the concatenation explicit:

Data:

LOAD * FROM Table1;

Concatenate(Data)

LOAD * FROM Table2;

Concatenate(Data)

LOAD * FROM Table3;

HTH

Jonathan

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

View solution in original post

6 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Hi

If you are getting a syn table, then table 3 is not concatenating. Make the concatenation explicit:

Data:

LOAD * FROM Table1;

Concatenate(Data)

LOAD * FROM Table2;

Concatenate(Data)

LOAD * FROM Table3;

HTH

Jonathan

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

Hi,

add Concatenate keyword before load statement.

if this not work then post your script.

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Not applicable
Author

thanx

Not applicable
Author

what did u mean with add concatenate keyword

thats my script

SAP_IST_F20:
LOAD Geschäftsjahr,
Periode,
AddMonths(makedate(Geschäftsjahr,2), Periode) as Date,
// Month(Periode,+2) AS Month,
// Year(Date) AS Year,

Kostenstelle,
Kostenartengruppe,
Kostenart,
Kostenartenbeschr.,
[Konto Gegenbuchung],
[Bezeichnung des Gegenkontos],
[Wert/BWähr],
Berichtswährung,
Benutzername,
Buchungsdatum,
Bezeichnung,
[Nr Referenzbeleg],
Einkaufsbeleg
FROM

(
qvd)
Where Kostenstelle<>1011747 and Kostenstelle<>1011746 and [Konto Gegenbuchung]<>10010;

Concatenate(SAP_IST_F20)

LV_Betrieb:
LOAD Rechnungsfirma,
Projekt_Rechnung,
Prod,
Bezeichnung_Produkt,
Projekt_ID,
Bezeichnung_Projekt,
Anteil_Projekt,
Projektstatus,
Leistung_ID,
Bezeichnung_Leistung,
Zusatzinfo,
Kontierung_Kunde_I,
Kontierung_Kunde_II,
SummevonMENGE,
Einheit,
Preis_EUR,
EUR,
EUR AS [Wert/BWähr],
Abrechnungsmonat,
Date(Abrechnungsmonat) AS Date,
// Year(Abrechnungsmonat) AS Geschäftsjahr,
// Month(Abrechnungsmonat) AS Periode,
Leistungsmonat,
Rechnungsnummer,
1011747
AS Kostenstelle,
2581500000
AS Kostenart,
'Aufwand Weiterbelastung IT- und EDV-Kost'
AS Kostenartenbeschr.
FROM

(
qvd);

Concatenate(SAP_IST_F20)



LV_Projekte:
LOAD Rechnungsfirma,
PROJEKT_RECHNUNG,
PRODUKT,
BEZEICHNUNG_PRODUKT,
PROJEKT_ID,
BEZEICHNUNG_PROJEKT,
ANTEIL_PROJEKT,
PROJEKTSTATUS,
LEISTUNG_ID,
BEZEICHNUNG_LEISTUNG,
ZUSATZINFO,
KONTIERUNG_KUNDE_I,
KONTIERUNG_KUNDE_II,
MENGE,
EINHEIT,
PREIS_EUR,
EUR AS [Wert/BWähr],
Abrechnungsmonat,
Date(Abrechnungsmonat) AS Date,
Leistungsmonat,
Rechnungsnummer,
1011746
AS Kostenstelle
FROM

(
qvd);

PrashantSangle

Hi,

Just remove table name for 2nd,3rd before load statement

Try Below code

SAP_IST_F20:
LOAD Geschäftsjahr,
Periode,
AddMonths(makedate(Geschäftsjahr,2), Periode) as Date,
// Month(Periode,+2) AS Month,
// Year(Date) AS Year,

Kostenstelle,
Kostenartengruppe,
Kostenart,
Kostenartenbeschr.,
[Konto Gegenbuchung],
[Bezeichnung des Gegenkontos],
[Wert/BWähr],
Berichtswährung,
Benutzername,
Buchungsdatum,
Bezeichnung,
[Nr Referenzbeleg],
Einkaufsbeleg
FROM

(
qvd)
Where Kostenstelle<>1011747 and Kostenstelle<>1011746 and [Konto Gegenbuchung]<>10010;

Concatenate(SAP_IST_F20)

LOAD Rechnungsfirma,
Projekt_Rechnung,
Prod,
Bezeichnung_Produkt,
Projekt_ID,
Bezeichnung_Projekt,
Anteil_Projekt,
Projektstatus,
Leistung_ID,
Bezeichnung_Leistung,
Zusatzinfo,
Kontierung_Kunde_I,
Kontierung_Kunde_II,
SummevonMENGE,
Einheit,
Preis_EUR,
EUR,
EUR AS [Wert/BWähr],
Abrechnungsmonat,
Date(Abrechnungsmonat) AS Date,
// Year(Abrechnungsmonat) AS Geschäftsjahr,
// Month(Abrechnungsmonat) AS Periode,
Leistungsmonat,
Rechnungsnummer,
1011747
AS Kostenstelle,
2581500000
AS Kostenart,
'Aufwand Weiterbelastung IT- und EDV-Kost'
AS Kostenartenbeschr.
FROM

(
qvd);

Concatenate(SAP_IST_F20)

LOAD Rechnungsfirma,
PROJEKT_RECHNUNG,
PRODUKT,
BEZEICHNUNG_PRODUKT,
PROJEKT_ID,
BEZEICHNUNG_PROJEKT,
ANTEIL_PROJEKT,
PROJEKTSTATUS,
LEISTUNG_ID,
BEZEICHNUNG_LEISTUNG,
ZUSATZINFO,
KONTIERUNG_KUNDE_I,
KONTIERUNG_KUNDE_II,
MENGE,
EINHEIT,
PREIS_EUR,
EUR AS [Wert/BWähr],
Abrechnungsmonat,
Date(Abrechnungsmonat) AS Date,
Leistungsmonat,
Rechnungsnummer,
1011746
AS Kostenstelle
FROM

(
qvd);

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
PrashantSangle

Hi,

do you have two tables with name "LV_Projekte:"

because i did not see any Ebene 1 , Ebene2 such field under "LV_Projekte" table in posted script.

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂