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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
tinkerz1
Creator II
Creator II

QV hangs after making a key from a resident table

QV is hangs when I add a key to my fact table.

What I am is doing is this

[Table1]:

Load *,

ORDERID and LOCATION AS KEY

SALESID and LOCATION AS KEY2

Calcfield as KEY3

Resident [TableA];

Drop TableA

But this is really not working its hanging really and won't continue I have identifed it as this code.

It works in the script but on smaller tables, the reason why I put the key on after is because its on a calculated field and also after a where clause so the data set is smaller.

Labels (1)
6 Replies
quwok
Creator III
Creator III

It sounds like that piece of code may have added some complex relationship to your model. The "hanging" would most likely be QlikView trying to resolve it. Have a look and see if the addition of that code has created any circular references or complex synthetic keys to the model.

tinkerz1
Creator II
Creator II
Author

How do I do that as It hangs and wont finish??

tinkerz1
Creator II
Creator II
Author

I have renamed the field so there is no associations and still it hangs.

cwolf
Creator III
Creator III

"and" is here not correct. You have to use:

[Table1]:

Load *,

ORDERID & LOCATION AS KEY,

SALESID & LOCATION AS KEY2,

Calcfield as KEY3

Resident [TableA];

tinkerz1
Creator II
Creator II
Author

Yes I am using '&'

I am even using

[Table1]:

Load *,

'-' as test

Resident TableA;

tinkerz1
Creator II
Creator II
Author

Thinking out loud, by duplicating the table I am making many associations in the *, portion.

How can I add a key to table after I have added a calculated field and then reduced it by using a where clause?