Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi Team,
I have a table with a column which has comma seperated values as below.
I'm trying to add a column to show count of these delimited values. for example: below has 49 delimited values. the column should show 49 next to this column.
AL, AZ, AR, CA, CO, CT, DE, DC, FL, GA, HI, ID, IL, IN, IA, KS, KY, LA, ME, MD, MA, MI, MN, MS, MO, MT, NE, NV, NH, NJ, NM, NY, NC, ND, OH, OK, OR, PA, RI, SC, SD, TN, TX, VT, VA, WA, WV, WI, WY |
Solved! Go to Solution.
In Power Query, try this in a custom column:
List.Count(Text.Split([State],","))
Proud to be a Super User!
Hi,
This calculated column formula works
=LEN(Table1[Text])-LEN(SUBSTITUTE(Table1[Text],",",""))+1
Hope this helps.
In Power Query, try this in a custom column:
List.Count(Text.Split([State],","))
Proud to be a Super User!