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
Vilem
Frequent Visitor

Count of rows based on text

Hello,

 

I need advice on how to get a count of rows with the same text in a calculated column.

MonthCount
Jan4
Jan4
Jan4
Jan4
Feb2
Feb2
Mar2
Mar2

 

Simple as that. In excel it would be something like sumif.
Thanks for the advice!

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@Vilem 

Add this calculated column

Count  = calculate ( countrows(table), allexcept( table , table[month]))  



Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

2 REPLIES 2
Fowmy
Super User
Super User

@Vilem 

Add this calculated column

Count  = calculate ( countrows(table), allexcept( table , table[month]))  



Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Vilem
Frequent Visitor

Thanks for your quick answer.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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