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

Not sure how to solve it. Issue with three tables.

Hi i'll try to explain this. For sure i've have still a lot to learn, but did my best and didn't got the solution. I've attached all the files of the example i've made.

there are 3 files:

INCICENTS

CHANGES

TASKS

Each ID have associated a SERVICE DESCRIPTION. But SOME TASKS don't. All TASKS have a asocciated CHANGE, and all the changes always have a SERVICE DESCRIPTION.

I'm trying to associate the TASK service description with the service description of it's change.

  

IDSERVICE DESCRIPTIONTYPELOCATION
CH001THIS IS A DESCRIPTION TEST1CHANGENY
CH002THIS IS A DESCRIPTION TEST2CHANGEEU
CH003THIS IS A DESCRIPTION TEST1CHANGENY
CH004THIS IS A DESCRIPTION TEST2CHANGEEU
CH005THIS IS A DESCRIPTION TEST1CHANGENY
CH006THIS IS A DESCRIPTION TEST2CHANGEEU
INC001THIS IS A DESCRIPTION TEST1INCIDENTNY
INC002THIS IS A DESCRIPTION TEST1INCIDENTNY
INC003THIS IS A DESCRIPTION TEST2INCIDENTEU
INC004THIS IS A DESCRIPTION TEST2INCIDENTEU
INC005THIS IS A DESCRIPTION TEST1INCIDENTNY
T001 TASK
T002 TASK
T003THIS IS A DESCRIPTION TEST1TASKNY
T004THIS IS A DESCRIPTION TEST2TASKEU
T005 TASK
T006 TASK

I cant get the service description and the location of the task from it's related change. can any one help pls??

I've tryied a lot of things, but none was successfull

huge thanks in advance.

6 Replies
Anonymous
Not applicable
Author

I solved this specific problem for you using the "Mapping LOAD" and ApplyMap-function. I commented in the script to try to explain what I did. Hope this helps!

Read more: Don't join - use Applymap instead

See attached file.

Not applicable
Author

Thanks for the fast answer! Kim, the file is without comments :/, maybe wrong upload?

there is nothing but this.

LOAD * Inline

[Rep_Name, amount

1,1000

2,3000

3,2000

];

Can't see any other thing on it!

Could u check it again pls? thx!!

ElizaF
Creator II
Creator II

Hello,

My opinion is that the structure of database is not well defined and also how are the links between tables.

You can use Link table (see below) or the example for attached file.

what is use of link tables ,how to use it

I do not know if it is what you want.

Not applicable
Author

First of all thanks for the answer, but also in your exemple:

a: changes are not listed

b. Incidents dont fill up alias neither location, based on the information on the SERVICE DESCRIPTION.

(seems it's more tricky than i thought) 😕

thanks for the help!

ElizaF
Creator II
Creator II

I do not understand what are your requirements.

Can you post the desired result?

Anonymous
Not applicable
Author

Oh, sorry! I was too quick I guess.. Take a look at the attached file.