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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

"Recursive" load

Hi everyone, i have issue with loading profit&loss table. I load strucute of profit&loss table from 3 different tables and i have table with account details (amount, id etc). I would like to connect profit&loss and accounts via accoundID (in my code named Suau). But i have problem wiht calculated lines. I do not know how to explain this problem so I attached an example.

Example of what i have:

FS_Caption
LineNumber
AccId_LineAccountID
Revenue from goods.1378378
Cost of goods sold2411411
Cost of goods sold2430430
Gross profit31 (this is not really account id...)-
Gross profit32 (because it has less than tree numbers)-

and i need to transform Gross profit to something like this.

FS_Caption
LineNumberAccid_LineAccountID
Gross profit3378378
Gross profit3411411
Gross profit3430430

Here is my code:

QUALIFY *;

UNQUALIFY Suau;

PaL:

LOAD

Text,

AccId_Line,

Suau,

Poradi as CalculationOrder,

Ozn as LineOrder

SQL

    SELECT $(Omezeni)

    VYPOCTY.Poradi,

    TEXTY.Text,

    UCTY2.Suau,

    UCTY2.Ci,

    AccId_Line,

    Ozn

    FROM VSL_POR VYPOCTY

    LEFT JOIN VSL_SLP TEXTY on VYPOCTY.CiR = TEXTY.CiR

    LEFT JOIN VSL_UC UCTY1 on VYPOCTY.CiR = UCTY1.CiR

    LEFT JOIn VIEWUCOS UCTY2 on UCTY1.AccId_Line=UCTY2.Ci

    WHERE Cih=4 and UCTY2.Ci iS NOT NULL

    ORDER BY Poradi;

Can someone please help me?

Labels (1)
0 Replies