Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
ilanbaruch
Specialist
Specialist

Hash Key

Hi All,

I have 7 tables in my model all connected with account_id field and 3 of the tables contain also user_id field (currently commented).

I miss some of the calculations because I cant relay on account_id I need the user_id.

I know can be solved by LinkTable \ KeyTable but it will increase load time.. is there another way to load also user_id field?

thank you,

Ilan


7 Replies
MK_QSL
MVP
MVP

AutoNumber(account_id & '-' & user_id) as %Key

Anonymous
Not applicable

Can you share your data model ?

marcus_malinow
Partner - Specialist III
Partner - Specialist III

Ilan,

the typical approaches to this are either a link table or a concatenated fact table.

ilanbaruch
Specialist
Specialist
Author

hi,

thank you for prompt answer.

after creating the new field (%Key), should I also load the two fields otherwise how will connect to the rest of the model?


marcus_malinow
Partner - Specialist III
Partner - Specialist III

Actually, on reflection, does your user id have a direct relationship to account id? e.g. is there a single user id associated with an account id?

If so, and if you have an Account dimension table, you could add your user id to that table.

ilanbaruch
Specialist
Specialist
Author

user id have a direct relationship to account id- every account  have a user id I have more users than accounts.

all starts with user and then part of them become accounts

sujeetsingh
Master III
Master III

Yes you load them if needed.