Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin 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 Friends,
I have a question about creating a column in Power BI editor table that counts the number of a specific text value across several columns. See the screenshot below, I would like to count how many of the 4 columns ("Was question 1,2,3,4 resolved"?) have a vlaue of "Yes".
There is an similar question asked in this forum, and the solution is to use the "List.Count(List.Select(Record.FieldValues(_), (x) => Text.Contains(x, "Yes")))" formulae. I tried this in my case, but what I got is just Errors, although the no syntax errors are detected, as shown in the Screenshot below.
I don't know why the formulae does not work in my case, or why it worked in the original case. Is there anyway I can get the count of the values in one step? Thanks.
Solved! Go to Solution.
Thanks, Hotchilli,
Here is the screenshot for the error message. It says " ... cannot convert value 11 to Type text". It is the first ID value, which is a numeric field. I have several numeric field, I think the problem is with the numeric fields.
So I excluded all numeric fields from the table, and do the formulae again. This time it works perfect.
See screenshot below.
So it seems the formula only works for data with no numeric fields. So if I want to keep my numeric fields in the table, what revision should be made to the formula so it will ignore the numeric fields?
Thanks,
Post the Error text please.
You click in the Error cell (but not on the word itself)
Thanks, Hotchilli,
Here is the screenshot for the error message. It says " ... cannot convert value 11 to Type text". It is the first ID value, which is a numeric field. I have several numeric field, I think the problem is with the numeric fields.
So I excluded all numeric fields from the table, and do the formulae again. This time it works perfect.
See screenshot below.
So it seems the formula only works for data with no numeric fields. So if I want to keep my numeric fields in the table, what revision should be made to the formula so it will ignore the numeric fields?
Thanks,
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
9 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
12 | |
11 | |
9 | |
6 | |
6 |