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 dateJoin 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
Could anyone tell me how to create a column with the count of categories in the highlighted column
100033 | Liquid Lounge | 1 | INR | 74.84666 | 12.87074 | Finger Food, Continental, North Indian |
100044 | Village Restaurant | 1 | INR | 74.85946 | 12.89898 | Chinese, Continental, North Indian, Mughlai |
Solved! Go to Solution.
Hi @seemak ,
You can try a custom column with the following code:
List.Count(Text.Split([categoryColumn], ","))
Pete
Proud to be a Datanaut!
Thank you so much Pete, it worked , but we need to remove the +1
I created the custom column List.Count(Text.Split([Cuisines],",")) and it worked perfectly
Ah, yes.
I got confused with something else I was doing counting delimiters.
I'll amend my original answer so it's correct for future viewers.
Pete
Proud to be a Datanaut!
Hi @seemak ,
You can try a custom column with the following code:
List.Count(Text.Split([categoryColumn], ","))
Pete
Proud to be a Datanaut!
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 |
---|---|
8 | |
6 | |
6 | |
5 | |
5 |
User | Count |
---|---|
10 | |
8 | |
6 | |
6 | |
6 |