Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Metabase] SOSP - créer une requête pour afficher le nombre d'usage de chaque tag projet #1003

Open
sabinesafi opened this issue Feb 5, 2025 · 2 comments
Assignees
Labels
backend Pull requests that update Python code

Comments

@sabinesafi
Copy link

sabinesafi commented Feb 5, 2025

Marie souhaite savoir combien de fois chaque thématique de projets a été utilisée (les topics, pas les tags). Dans Metabase, l'info remonte, mais ça "fait une seule expression" avec l'ensemble des topics utilisés sur un projet (cf screenshot). Du coup je n'arrive pas à avoir l'info de l'usage pour chaque topic distinctement. J'imagine qu'une requête en SQL dans Metabase peut sortir ça.

Ça doit correspondre aux données de cette page (mais dans un format plus pratique pour gestion des stats de Marie)

Image
@sabinesafi sabinesafi converted this from a draft issue Feb 5, 2025
@sabinesafi sabinesafi added the backend Pull requests that update Python code label Feb 5, 2025
@etchegom
Copy link
Collaborator

Note tech: utiliser unnest?

used to expand an array into a set of rows

Doc: https://www.w3resource.com/PostgreSQL/postgresql_unnest-function.php

Et faire le count sur ces colonnes générées

@etchegom
Copy link
Collaborator

@sabinesafi sabinesafi moved this from Todo to En prod in Backlog produit Recoco Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Pull requests that update Python code
Projects
Status: En prod
Development

No branches or pull requests

2 participants