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 dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.
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 |
---|---|
23 | |
10 | |
10 | |
9 | |
7 |