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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.