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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 61 | |
| 46 | |
| 40 | |
| 38 | |
| 22 |
| User | Count |
|---|---|
| 178 | |
| 133 | |
| 118 | |
| 82 | |
| 56 |