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 all
Is there a way of counting the number of values in a column in Power BI (see screen shot below)
I also have this column, comma separated.
For instance 10 70 = 2
Solved! Go to Solution.
Create a Custom Column and add this formula:
List.Count(Text.PositionOf([Home Team Goal Minute],",",Occurrence.All )) + 1
Your screenshot shows that it is separated by a space and not a comma, if that's the case then this should work:
List.Count(Text.PositionOf([Home Team Goal Minute]," ",Occurrence.All )) + 1
Thanks @hannibalmads I really need to get more into Custom columns, it's so powerful yet I've never really explored it properly. Any good resources you could recommend? Thanks again
Great to hear. Power Query and the M language is totally underappreciated (in my opinion) in terms of documentation as well as usage, but this book is my bible
Create a Custom Column and add this formula:
List.Count(Text.PositionOf([Home Team Goal Minute],",",Occurrence.All )) + 1
Your screenshot shows that it is separated by a space and not a comma, if that's the case then this should work:
List.Count(Text.PositionOf([Home Team Goal Minute]," ",Occurrence.All )) + 1
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 |
---|---|
58 | |
56 | |
56 | |
38 | |
29 |
User | Count |
---|---|
75 | |
62 | |
45 | |
40 | |
39 |