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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
robstewart89
Advocate IV
Advocate IV

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
robstewart89
Advocate IV
Advocate IV

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]))

Regards
Zubair

Please try my custom visuals

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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