Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi there,
I have a column in a table in which people can answer 1-10 on a scale.
I am trying to do a count of all the answers containing 1,2 &3 within that column.
does anyone know how to do this? I know how to count words and also 0 but not multiple numbers 😞
thank you in advance
Solved! Go to Solution.
Hi @EIJ ,
@mh2587 nice method! Thank you, for your quick response and the solution provided.
And you can also try code as below to create measure.
My Sample:
Count123 =
SUMX ( 'Table', IF ( 'Table'[Answer] IN { 1, 2, 3 }, 1, 0 ) )
In the Visualizations pane, select the Card icon and put the measure in the card visualization.
Result is as below.
Is this the result you expect?
Best Regards,
Yulia Yan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @EIJ ,
@mh2587 nice method! Thank you, for your quick response and the solution provided.
And you can also try code as below to create measure.
My Sample:
Count123 =
SUMX ( 'Table', IF ( 'Table'[Answer] IN { 1, 2, 3 }, 1, 0 ) )
In the Visualizations pane, select the Card icon and put the measure in the card visualization.
Result is as below.
Is this the result you expect?
Best Regards,
Yulia Yan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you- this has worked well!
Count123 = COUNTROWS(FILTER(YourTable, YourTable[YourColumn] IN {1, 2, 3}))
Did I answer your question? If so, please mark my post as a solution!
Proud to be a Super User!
Thank you. I've tried to use it but how does it show me the total figure? Does it need extra formula to do that?
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
63 | |
59 | |
56 | |
38 | |
29 |
User | Count |
---|---|
82 | |
62 | |
45 | |
41 | |
40 |