Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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.
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]);
Merci beaucoup.
C'est exactement ce que je souhaitais avoir.