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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

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

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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