Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Bonjour j’ai une colonne sous powerBI qui contient des nombres décimaux, de 1 à X Je souhaite compter le nombre d’occurrences supérieures à 4 dans une cellule grâce à une mesure à l’avance merci de votre aide
| colonne de 1 à X | inférieur 4 |
| 4,5;3;2;7;9;2 | 3 |
| 4,5;3;2;7 | 2 |
| 3;2;7;9;4 | 2 |
| 9,1;5,4 | 1 |
| 4,5;3;7;9;6 | 1 |
| 4,5;3;2;7;9;7 | 2 |
| 4,5;3;2;7;9;8 | 2 |
Solved! Go to Solution.
I don't understand. Your title and text indicate you want a count of the values greater than 4 (>4); but your example shows values less than 4 (<4) except for your 4th line: 9,1;5,4 for which you show a count of one (1).
Why is that line showing a count of one (1)?
I am assuming you use the comma for a decimal, and the semicolon is separating the different values in the cell. If that is not the case, please clarify.
What do you really want?
If you want values less than 4, add a custom column in Power Query with the formula:
=List.Count(List.Select(List.Transform(Text.Split([colonne de 1 à X],";"), each Number.From(_, "fr-FR")), each _ < 4))
If you want values greater than 4, just change the comparison:
=List.Count(List.Select(List.Transform(Text.Split([colonne de 1 à X],";"), each Number.From(_, "fr-FR")), each _ > 4))
I don't understand. Your title and text indicate you want a count of the values greater than 4 (>4); but your example shows values less than 4 (<4) except for your 4th line: 9,1;5,4 for which you show a count of one (1).
Why is that line showing a count of one (1)?
I am assuming you use the comma for a decimal, and the semicolon is separating the different values in the cell. If that is not the case, please clarify.
What do you really want?
If you want values less than 4, add a custom column in Power Query with the formula:
=List.Count(List.Select(List.Transform(Text.Split([colonne de 1 à X],";"), each Number.From(_, "fr-FR")), each _ < 4))
If you want values greater than 4, just change the comparison:
=List.Count(List.Select(List.Transform(Text.Split([colonne de 1 à X],";"), each Number.From(_, "fr-FR")), each _ > 4))
Merci, cela fonctionne parfaitement
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.