The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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 |
---|---|
16 | |
8 | |
7 | |
6 | |
5 |
User | Count |
---|---|
25 | |
13 | |
12 | |
8 | |
8 |