Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
How do I count some values within a field?
Ex. I have the "Fruit" field, made up of the values:
Banana
Banana
Strawberry
Kiwi
I have to get:
Banana = 2
Strawberry = 1
Kiwi = 1
My formula, butit does not work:
Solved! Go to Solution.
You can through ALLEXCEPT() to count values in groups .
Measure = calculate(COUNT('Table'[Fruit]),ALLEXCEPT('Table','Table'[Fruit]))
The result is as shown :
Best Regards,
Community Support Team _ Ailsa Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
You can through ALLEXCEPT() to count values in groups .
Measure = calculate(COUNT('Table'[Fruit]),ALLEXCEPT('Table','Table'[Fruit]))
The result is as shown :
Best Regards,
Community Support Team _ Ailsa Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
you can use a mesaure:
If this post is useful to help you to solve your issue, consider giving the post a thumbs up and accepting it as a solution !
Hi,
thanks! But how can I make a measure with the strawberry count alone?
ex.
Count ('Fruit' [Type] = "Strawberry")
Hi,
This is the measure
but it depends what you need to do with it.
If this post is useful to help you to solve your issue, consider giving the post a thumbs up and accepting it as a solution !
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
15 | |
10 | |
10 | |
10 | |
10 |
User | Count |
---|---|
19 | |
14 | |
13 | |
11 | |
8 |