Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

need help

Hi,

I have calculated sum and average for the corresponding process

I received another table having sub process field with partial sums.

not getting accurate results after I loaded second table into qlikview.

I have tried with join,concatenate but not working.

how to combine both tables to calculate at this situation

PFB of sample data.

Please help me on this.

5 Replies
prieper
Master II
Master II

what is not correct?

prieper
Master II
Master II

EXISTS() refers only to existing values.

So the second table cannot be loaded, if there are no data previously loaded for Client

bobdawes
Contributor III
Contributor III

Your second table seems to essentially be "line level" data for sub processes, whereas the first table is "header" data for processes. 

After you fixe the EXISTS clause that Peter accurately noted, suggestion is to put value1 from the line level into a different field, which you can then compare to value 1 form the header records.  Ultimately, assuming they always match, you won't need to load the header value 1.

Not applicable
Author

I have already tried with exists but not getting...

I want to load sub process and sum for the particular client.

how it can be possible?

Can you try with my sample data?

bobdawes
Contributor III
Contributor III

The exists is your problem. 

I'd load these tables along these lines:

Process:

LOAD process,

     MonthYr,

     process & '|' & MonthYr as %ProcessMonthKey,

     value1,

     value2,

     value3

FROM

(ooxml, embedded labels, table is Sheet1);

SubProcess:

NoConcatenate

LOAD

     process & '|' & MonthYr as %ProcessMonthKey,

//process,

     [Sub Process],

//     MonthYr,

     value1 as SubProcessValue1,

     value2 as SubProcessValue2,

     value3 as SubProcessValue3

FROM

(ooxml, embedded labels, table is Sheet2);