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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
IbrahimHakim
Regular Visitor

count text values in columns

Please I need your help on this, I have a column of text which I splitted to form 29 resulting columns. So want now to create a measure which will count the the text values in all the columns. Thanks in advance
1 ACCEPTED SOLUTION
v-kkf-msft
Community Support
Community Support

Hi @IbrahimHakim ,

 

1. You can create the custom column in Power Query.

 

= List.Count(List.Select( List.Skip( Record.ToList(_),1), each _ <> null and _ <> ""))

vkkfmsft_0-1655805004884.png

 

2. Create a measure.

  • Select [Job Posting ID] column, then unpivot other columns.

vkkfmsft_1-1655805034560.png

vkkfmsft_2-1655805054605.png

  • Create the measure.
Measure = CALCULATE ( COUNT ( 'Table (2)'[Value] ), 'Table (2)'[Value] <> BLANK () )

vkkfmsft_3-1655805272575.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

6 REPLIES 6
IbrahimHakim
Regular Visitor

Hello. 

Please I have a table made up of job posting IDs and job skills. I further splitted the job skills column so it may be easy to count for each skill. How can I count the values of each  skill while keeping the posting IDs intact. The column I splitted have text like ('excel','python', 'r', 'sas') for each posting ID. how will I count for each skill in the resulting columns.

Hey I have the same question as you have, did you solve it and would you mind sharing how you solve the problem?

 

Thanks

Hi @IbrahimHakim 

It's not really clear what you are looking for.  Please post a sample of your data in text format (not a screeen shot) in a table and show the desired result as well.

v-kkf-msft
Community Support
Community Support

Hi @IbrahimHakim ,

 

1. You can create the custom column in Power Query.

 

= List.Count(List.Select( List.Skip( Record.ToList(_),1), each _ <> null and _ <> ""))

vkkfmsft_0-1655805004884.png

 

2. Create a measure.

  • Select [Job Posting ID] column, then unpivot other columns.

vkkfmsft_1-1655805034560.png

vkkfmsft_2-1655805054605.png

  • Create the measure.
Measure = CALCULATE ( COUNT ( 'Table (2)'[Value] ), 'Table (2)'[Value] <> BLANK () )

vkkfmsft_3-1655805272575.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.

 

IbrahimHakim
Regular Visitor

this  is the sample tablethis is the sample table

 

This is the sample table. the table was obtained after I splitted a single column with text data like ('python' , 'excel' , 'r'). Now I need to create a measure which counts each skill per a posting id. Thanks in advance

PhilipTreacy
Super User
Super User

Hi @IbrahimHakim 

 

Please provide sample data or preferably your file, and an exampel of the result you are after.  Really hard to help without this.

 

regards

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Solution Authors