Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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: