Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Bonjour
j'ai un DATA de 75 000 lignes dans lequel je souhaiterais savoir combien de lignes contiennent la valeur "NOK" (par opposition aux lignes ayant la valeur "OK").
comment puis-je remonter cette information, que je transformerais ensuite en %, afin de savoir combien j'ai de NOK par rapport au total de mes lignes ?
Merci pour votre aide !
Here it is
Dans l'éditeur de script,
Table:
Champ1,
Champ2,
if(Champ3='OK',1,0) as ChampOK,
if(Champ3='OK',0,1) as ChampNONOK,
1 as TotalChamp
From SOURCES;
Au niveau des Graphique
- Nombre de ligne total
sum( TotalChamp)
- Nombre de ligne avec OK
sum(ChampOK)
- Nombre de ligne avec Non OK
sum(ChampNONOK)
- % OK
sum(ChampOK)*100 /sum( TotalChamp)
- % Non OK
sum(ChampNONOK)*100 /sum( TotalChamp)