Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Help! I am new to Power BI and I need to work out how to create a measure to count all the number of 'Yes' or 'No' responses within a specific column of a table.....can anyone direct me for which formula I need?
Thanks in advance,
Not so fast grasshopper!! Maybe I blew something up, but this is what I get on this.
There are a few ways you can do this depending on your use case! Here's an example of creating 2 measures for each yes and no. Plug in your table and column names and it should work for you.
number of yes = CALCULATE (
COUNT ( 'Table'[ID] ),
'Table'[yes/no column] = "Yes"
)
number of no = CALCULATE (
COUNT ( 'Table'[ID] ),
'Table'[yes/no column] = "No"
)
this worked a treat for me - I exactly needed YES and NO, so used your example as template and was very happy with the output - thank you.
User | Count |
---|---|
15 | |
9 | |
8 | |
6 | |
5 |
User | Count |
---|---|
29 | |
18 | |
15 | |
7 | |
6 |