Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
mitjap
Contributor III
Contributor III

Sum colums rows

did a lot things, but stuck at problem

first excel sheet

dnidsifrap
657137280200
717399280200
717374280200
705786F40117
714113F40117

 

in second sheet

dnidpc_delotrn
7173991740
7173992040
7173741380
71737460
7141133012
7141131380

 

Result should be:

280200=sum 1740+2040+1380+60=5220

F40117=sum 3012+1380=4392

Its hard problem for me, but as allways, when you learn you know.

thanks for help.

1 Solution

Accepted Solutions
Saravanan_Desingh

Try this,

tab1:
LOAD * INLINE [
    dnid, sifrap
    657137, 280200
    717399, 280200
    717374, 280200
    705786, F40117
    714113, F40117
];

tab2:
LOAD dnidp As dnid, c_delotrn;
LOAD * INLINE [
    dnidp, c_delotrn
    717399, 1740
    717399, 2040
    717374, 1380
    717374, 60
    714113, 3012
    714113, 1380
];

View solution in original post

3 Replies
Saravanan_Desingh

Try this,

tab1:
LOAD * INLINE [
    dnid, sifrap
    657137, 280200
    717399, 280200
    717374, 280200
    705786, F40117
    714113, F40117
];

tab2:
LOAD dnidp As dnid, c_delotrn;
LOAD * INLINE [
    dnidp, c_delotrn
    717399, 1740
    717399, 2040
    717374, 1380
    717374, 60
    714113, 3012
    714113, 1380
];
Saravanan_Desingh

Output:

commQV92.PNG

mitjap
Contributor III
Contributor III
Author

Works great. thank you, thank you