Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

if in load script

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);

1 Solution

Accepted Solutions
maxgro
MVP
MVP

    ........

    //(Kostenart,                                                                                                      // comment this

    Kostenartenbeschr.,

    [Konto Gegenbuchung],

    [Bezeichnung des Gegenkontos],

    [Wert/BWähr],

    Berichtswährung,

    Benutzername,

    If (Kostenstelle=1011746,2581500000,Kostenart) as Kostenart,                         // modify this

    .........

View solution in original post

2 Replies
maxgro
MVP
MVP

    ........

    //(Kostenart,                                                                                                      // comment this

    Kostenartenbeschr.,

    [Konto Gegenbuchung],

    [Bezeichnung des Gegenkontos],

    [Wert/BWähr],

    Berichtswährung,

    Benutzername,

    If (Kostenstelle=1011746,2581500000,Kostenart) as Kostenart,                         // modify this

    .........

Not applicable
Author

thanx a lot