Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
99 | |
83 | |
70 | |
61 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |