Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Problème clés synthétiques

Bonjour,

J'ai un problème avec mon modèle de données et les clés synthétiques que je souhaite supprimer.

Capture.PNG

J'ai une table principale "DONNEES_LOGIX" avec les champs Département, Agence et Vendeur que l'on retrouve dans les autres tables, (mais pas les 3 en même temps).

Je voudrais faire un modèle de données propres et remplacer les clés synthétiques mais je n'y parviens pas.

Pourriez vous m'aider ?

Merci d'avance !

Ophélie

6 Replies
Chanty4u
MVP
MVP

u can rename the ur filed names lik

agence as Agen1

department as Dep1   lik ...

by the u can remove synthetic keys

Synthetic Keys

Not applicable
Author

Merci pour ta réponse !

Mais je souhaite conserver un lien sur ses 3 champs.

Si je les renomme, je vais me retrouver avec plusieurs champs "Agence" et ce n'est pas ce que je souhaite.

Ophélie

syukyo_zhu
Creator III
Creator III

Bonjour

vous pouvez fusionner les deux tables DONNEES dans une même table.

Après créer des clés composés: CLE1&'|'&CLE2....pour supprimer les clés synthétiques.(pour joindre les deux tables vendeur et objectif)

Peter_Cammaert
Partner - Champion III
Partner - Champion III

I won't reply in your preferred language, as this is a general forum where the imposed language is English. I hope you'll understand.

As far as I can see, you have three facts tables. One table OBJECTIF contains Agency targets (without a period indicator), one table DONNEES_PRJ has Agency/Department/Portfolio aggregated data and one table DONNEES_LOGIX contains Customer Sales (most probably aggregated by Year). There are a few "issues" with this data set:

  • Period information is missing in most of them
  • The data is often already aggregated, which restricts your mobility in QlikView.
  • The three facts tables will compete with each other for dimension values. If you select on as dimension value master, you will have one facts table that filters the others.

There is one immediate solution: replace the synthetic key with a real link table

  • Convert all double key fields into single key fields by creating a key composed of a concatenation of key values.
  • Create a link table with all possible dimension values and their corresponding composed key values
  • Drop all dimension fields (like Agence, Vendeur & Département) from all facts tables, as they will now reside in the link table

but the better approach is to go back to the transactional data (except for table OBJECTIF) and do the aggregations yourself.

Best,

Peter

Peter_Cammaert
Partner - Champion III
Partner - Champion III

Si vous préférez la discussion en Français, il-y-a une authre groupe qui s'apelle Groupe des Utilisateurs Francophones

Anonymous
Not applicable
Author

Try this code

Link:

Load

Distinct

Agence,

Departement,

Vendeur

resident DONNEES_PRJ;

drop Fields

Departement

from  DONNEES_PRJ;

drop Fields

Vendeur

from VENDEUR_VAUCLUSE