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.
Hi,
I have multiple columns with 'Yes', 'No' or missing (null or '.'). I want to create a Count column that count the number of 'Yes' for each row.
For example, if I have the following data, the count would be 2.
A B C D
Yes Yes No .
Thanks!
Solved! Go to Solution.
As a calculated column, you can use
Column = VAR myrow={[A],[B],[C],[D]} RETURN COUNTROWS(Filter(myrow,[Value]="Yes"))
As a custom column using Power Query / M
=List.Count( List.Select( Record.ToList(_),each _ ="Yes"))
As a calculated column, you can use
Column = VAR myrow={[A],[B],[C],[D]} RETURN COUNTROWS(Filter(myrow,[Value]="Yes"))
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
24 | |
9 | |
7 | |
6 | |
6 |
User | Count |
---|---|
29 | |
11 | |
11 | |
10 | |
6 |