Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi
I have a cuisines table having columns as below
Column Name : Cuisines
Row Values : (European,Arabian,Japanese,Bakery,Desserst)
I wan result in Another column like
Cuisines - Count of Cuisines
European,Arabian,Japanese,Bakery,Desserst - 5
How can i get this results.
Can any one help me regarding this..?
Thanks in advance...
Solved! Go to Solution.
hi @Anonymous
try to add a calculated column like:
Count =
LEN([Cuisines - Copy])
-
LEN( SUBSTITUTE([Cuisines - Copy], ",", ""))
+1
it worked like:
yes, my pleasure
1) the count of cuisine is count of comma+1
2) replacing comma with blank("") makes the list short. The shortage is the count of comma.
make sense?
also possible like this
=PATHLENGTH(SUBSTITUTE([Cuisines - Copy],",","|"))
also possible like this
=PATHLENGTH(SUBSTITUTE([Cuisines - Copy],",","|"))
yes, my pleasure
1) the count of cuisine is count of comma+1
2) replacing comma with blank("") makes the list short. The shortage is the count of comma.
make sense?
hi @Anonymous
try to add a calculated column like:
Count =
LEN([Cuisines - Copy])
-
LEN( SUBSTITUTE([Cuisines - Copy], ",", ""))
+1
it worked like:
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.