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

Count of similar value in multiple Rows

Hi...I have a table in powe bi where i have multiple similar value in rows and i want a count of the total values of similar value in each row, something like this. Pls advise the formula for the same

 

PIC.PNG

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Try adding a calculated column to your table and adding the below:

 

Column =
COUNTX (
    FILTER (
        Table1,
        Table1[Entity] = EARLIER ( Table1[Entity] )
    ),
    Table1[Entity]
)

 

where Table1 is your table.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Try adding a calculated column to your table and adding the below:

 

Column =
COUNTX (
    FILTER (
        Table1,
        Table1[Entity] = EARLIER ( Table1[Entity] )
    ),
    Table1[Entity]
)

 

where Table1 is your table.

Thanks...this gave me perfect result

Zubair_Muhammad
Community Champion
Community Champion

Hi
You can use a calculated column like

=calculate(countrows (table1), allexcept(table1, table1[entity]))

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.

Top Solution Authors