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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Change column content in query

Dear community,

this is my first post as total rookie to QlikView. I got two tables like

Sales

Year

Month

Customer

Division

MatDiv1

MatDiv2

Sales amount


and

ProductHierarchy

Material

Product Family

MatDiv1 is populated only for division 1, MatDiv2 is populated only for division 2.

I want to have the material in a single column and apply apply the same lookup {(left keep (Sales) load ... from ProductHierarchy} to both Div1-Material and Div2-Material, in the script. How can I best do this?

Many thanks in advance!

12 Replies
joshabbott
Creator III
Creator III

Hmmm, that sounds like a different problem.  That's no good

Not applicable
Author

After playing around a little bit more, it seems that the problem is with the statement

left keep  (RA_raw) load ....

MatDiv1 as MatDiv

where Division = 1....

left keep  (RA_raw) load ....

MatDiv2 as MatDiv

where Division <> 1....


and if I drop the left keep  (RA_raw), then it doesn´t crash anymore. Now I just need to do the left keep functionality at another point in time in the script....

Not applicable
Author

The solution was ultimately an if statement in the initial load statement, works perfect!