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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Counting instances of word across rows to create numerical data

I am looking to count the number of times specific words appear in a row.

 

I want to be able to show percentages and also counts of the instances.

 

Currently, I have these in a donut chart but adding each column to the values as distinct counts. Its not great and cant show each section as a full percentage etc 

 

In the real world these are relative to construction health and safety and if specific sections are compliant or not

 

Any help here would be great.

 

 

ThanksCapture.PNGCapture 2.PNG

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous,

Whether Dotnut chart in below screen shot is your expected result? If yes, first please unpivot all of columns except the column "Date", then drag the fields (Legend: Value  Details: Date  Values: Count of Attribute) on Dotnut chart...Unpivot selected columnsUnpivot selected columns

Expected resultExpected result

Best Regards

Rena

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous,

Whether Dotnut chart in below screen shot is your expected result? If yes, first please unpivot all of columns except the column "Date", then drag the fields (Legend: Value  Details: Date  Values: Count of Attribute) on Dotnut chart...Unpivot selected columnsUnpivot selected columns

Expected resultExpected result

Best Regards

Rena

tex628
Community Champion
Community Champion

I would start by doing an unpivot on your data. Go into the query editor, highlight all columns apart from your date column and then press unpivot columns. You will find the button under the transform tab. 

When the data is formatted you should simply be able to use the normal integrated count of to display both count and %. 

Let me know if you have any questions. 

Br,
Johannes


Connect on LinkedIn

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.