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.
Having two columns:
NUMBER | ID |
ABC015753 | 0001612224-25-1,0001612224-25-2,0001612224-25-3,0001612224-25-4 |
ABC015761 | EBC257D 85C16327 599F8358 CC990AEF 64CD90C5 |
ABC015787 | 56567ZXC; 687687687BV; 8787687CVX |
I wish to add a new column where will be presented number of element from column "ID".
The delimiters can be "," , " " , ";".
What's the best way to do this?
Solved! Go to Solution.
Hi, @joe100
You can create a custom column in pq.
Like this:
List.Count(Text.PositionOfAny([ID], {","," ",";"}, -1))
If you need to add newlines, you can use ‘#lf’:
Did I answer your question? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.
Best Regards,
Community Support Team _ Janey
I think that the solution could be much easier , to count number of delimiters within the string + 1.
How I do it?
Hi, @joe100
You can create a custom column in pq.
Like this:
List.Count(Text.PositionOfAny([ID], {","," ",";"}, -1))
If you need to add newlines, you can use ‘#lf’:
Did I answer your question? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.
Best Regards,
Community Support Team _ Janey
Sure, thank you!
Hi,
You can split columns by delimiter in powerquery by right clicking a column, but this won't let you to split by multiple delimiters. Chek this post on how to do this: https://community.powerbi.com/t5/Desktop/splitting-multiple-delimiter-in-column-amp-find-max/m-p/222...
Proud to be a Super User!
@joe100 , I think you need split by a delimiter in power query, more than one (Into rows)
Split Column Power Query: https://youtu.be/FyO9Vmhcfag
https://www.tutorialgateway.org/how-to-split-columns-in-power-bi/
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 |
---|---|
19 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
25 | |
10 | |
10 | |
9 | |
6 |