This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
i have this table in my power query, how can I count multiple values in one cell in power query editor .for example skill count for first row should be 8.can anyone help me how to do this? @amitchandra @parry2k
Solved! Go to Solution.
Hi @AtchayaP ,
Here are the steps you can follow:
In Power Query..
1. Add Column – Custom Column .
2. Enter the following.
Text.Length([skills])
-
List.Count(Text.PositionOf([skills],",",Occurrence.All ))
3. Result:
Use Dax:
Create calculated column.
LEN(SUBSTITUTE('Table'[skills],",",""))
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi,
This M code works
let
Source = Excel.CurrentWorkbook(){[Name="Data"]}[Content],
#"Added Custom" = Table.AddColumn(Source, "Custom", each List.Count(Text.Split([skills],",")))
in
#"Added Custom"
Hope this helps.
Hi,
This M code works
let
Source = Excel.CurrentWorkbook(){[Name="Data"]}[Content],
#"Added Custom" = Table.AddColumn(Source, "Custom", each List.Count(Text.Split([skills],",")))
in
#"Added Custom"
Hope this helps.
Hi @AtchayaP ,
Here are the steps you can follow:
In Power Query..
1. Add Column – Custom Column .
2. Enter the following.
Text.Length([skills])
-
List.Count(Text.PositionOf([skills],",",Occurrence.All ))
3. Result:
Use Dax:
Create calculated column.
LEN(SUBSTITUTE('Table'[skills],",",""))
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
You could use Text.Split to turn it into a list, then use List.Count
or
if you can rely on it, you can count the occurrences of "," and add 1
Sure.should I use dax or any other?
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 34 | |
| 31 | |
| 30 | |
| 21 | |
| 16 |
| User | Count |
|---|---|
| 61 | |
| 50 | |
| 30 | |
| 23 | |
| 23 |