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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
TheQ1982
New Member

Count Text Data with Power BI

All,

would appreciate if you could help me with my challenge.

I have a table which has only text data and I like to count how many rows of data I have - if I do the "count" measure it always shows the total in each line, but I like to have each line counted as one (1).

 

With that data I like to compare the number of shipments YTD 2021 vs. 2022 in another measure to receive the growth percentage YOY.

1 REPLY 1
PurpleGate
Resolver III
Resolver III

How about a measure that only counts the rows with text on?

 

Measure = CALCULATE(COUNTROWS('Table'),FILTER('Table','Table'[Text]<>BLANK()))

 

CountRows (on your table), exlude rows where the column does not contain text

PurpleGate_0-1656589031774.png

 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors