Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
AtchayaP
Helper V
Helper V

Power query

16557421546927192591421006720310.jpg

Can anyone help me to show what syntax to be used I. Power query editor to get the count of skills

2 ACCEPTED SOLUTIONS
Vijay_A_Verma
Most Valuable Professional
Most Valuable Professional

Use following formula in a custom column

= List.Count(Text.Split([skills],","))

View solution in original post

Hi @AtchayaP ,

 

Do your cells contain duplicate or empty skills? If so, please try this formula to see if it returns the correct result.

 

= List.Count(List.RemoveItems( List.Distinct( Text.Split([skills],",")), {null,""," "} ))

vkkfmsft_0-1655962938010.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

When you run above list function, you want to change your data to a list first. Then it can return your number. 

Vijay_A_Verma
Most Valuable Professional
Most Valuable Professional

Use following formula in a custom column

= List.Count(Text.Split([skills],","))

Tried, but not getting exact count of skills

Hi @AtchayaP ,

 

Do your cells contain duplicate or empty skills? If so, please try this formula to see if it returns the correct result.

 

= List.Count(List.RemoveItems( List.Distinct( Text.Split([skills],",")), {null,""," "} ))

vkkfmsft_0-1655962938010.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Vijay_A_Verma
Most Valuable Professional
Most Valuable Professional

Please post your data. Refer to this - How to provide sample data in the Power BI Forum - https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...

 

Edit - I didn't realize that there is another thread running. You can continue in one thread only. Both threads are not needed.

Helpful resources

Announcements
Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.