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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
geo32600
Contributor
Contributor

table : regroupement d'information

Bonjour à tous, 

Je débute avec Qlik.

J'ai chargé une table qui contient 3 colonnes :

Col 1 : user    Col 2 : nom formation   col 3 : date certification (format jj.mm.aaaa)

Un utilisateur peut donc avoir plusieurs formations sur plusieurs

J'ai réussi à partir de cette table de créer une autre table avec 2 colonnes :

Col 1 : user    Col 2 : nb de formation certifiée

En utilisant le critère suivant : Count(distinct [nom formation])

Je voudrais créer une autre table avec 3 colonnes. Je pense qu'il faut utiliser un count mais je n'arrive pas à trouver les critères à mettre

Col 1 : user   Col 2 : année   col 3 - nb de certifications       

Merci d'avance pour votre aide.

Labels (2)
1 Solution

Accepted Solutions
geo32600
Contributor
Contributor
Author

Merci beaucoup.

C'est exactement ce que je souhaitais avoir.

View solution in original post

2 Replies
sandeep-singh
Creator II
Creator II

Try this or else, please share some sample data for further analysis

// Load the original table
CertificationTable:
LOAD user,
[training name],
Date(Date#([certification date], 'DD.MM.YYYY')) AS [certification date]
FROM [abc]; // your database location or file path

// Create a new table with the number of certified training per user
CertifiedTrainingTable:
LOAD user,
Count(DISTINCT [training name]) AS [number of certified training]
RESIDENT CertificationTable
GROUP BY user;

// Create a third table with the number of certifications per user and year
CertificationCountByYearTable:
LOAD user,
Year([certification date]) AS year,
Count([certification date]) AS [number of certifications]
RESIDENT CertificationTable
GROUP BY user, Year([certification date]);

geo32600
Contributor
Contributor
Author

Merci beaucoup.

C'est exactement ce que je souhaitais avoir.