Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi i have a problem with the if statement and i know if this is the right solution
i have two tables
one with the values
and another one for the dimesnion structure in my pivot
the key is the field KOSTENART
in the first table are value rows with the Kostenstelle 1011746 But the field Kostenart is empty
in every case of this Kostenstelle 1011746 i need in this row in field Kostenart= 2581500000
how can i solve this?
here is my script
LOAD Geschäftsjahr,
Periode,
Date1,
Kostenstelle,
Kostenartengruppe,
Kostenart,
Kostenartenbeschr.,
[Konto Gegenbuchung],
[Bezeichnung des Gegenkontos],
[Wert/BWähr],
Berichtswährung,
Benutzername,
If (Kostenstelle=1011746,Kostenart=2581500000), ????
Buchungsdatum,
Bezeichnung,
[Nr Referenzbeleg],
Einkaufsbeleg,
PROJEKT_ID,
Rechnungsfirma,
PROJEKT_RECHNUNG,
PRODUKT,
BEZEICHNUNG_PRODUKT,
BEZEICHNUNG_PROJEKT,
ANTEIL_PROJEKT,
PROJEKTSTATUS,
LEISTUNG_ID,
BEZEICHNUNG_LEISTUNG,
ZUSATZINFO,
KONTIERUNG_KUNDE_I,
KONTIERUNG_KUNDE_II,
MENGE,
EINHEIT,
PREIS_EUR,
Abrechnungsmonat,
Leistungsmonat,
Rechnungsnummer,
[FB Kostenstelle],
[Beschreibung Projekte],
[BEZEICHNUNG_PROJEKT (Rechnung)]
FROM
(qvd)
;
LOAD [Ebene 1],
[Ebene 2],
[Ebene 3],
BAB,
BAB_Beschreibung,
Konto AS Kostenart,
Konto_Beschreibung
FROM
(qvd);
........
//(Kostenart, // comment this
Kostenartenbeschr.,
[Konto Gegenbuchung],
[Bezeichnung des Gegenkontos],
[Wert/BWähr],
Berichtswährung,
Benutzername,
If (Kostenstelle=1011746,2581500000,Kostenart) as Kostenart, // modify this
.........
........
//(Kostenart, // comment this
Kostenartenbeschr.,
[Konto Gegenbuchung],
[Bezeichnung des Gegenkontos],
[Wert/BWähr],
Berichtswährung,
Benutzername,
If (Kostenstelle=1011746,2581500000,Kostenart) as Kostenart, // modify this
.........
thanx a lot