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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
AOD
Helper III
Helper III

count number of rows in table

Hi All, 

Need help 

I have below table as source , I want to create a easure that gives me count of exact matched addresses, where there are multiple rows of exact same address. single row should not be considered.

Address Type 
11, XYZ Lane , Postcode :123CT
11, XYZ Lane , Postcode :123H
11, XYZ Lane , Postcode :123R
5, XYZ Lane , Postcode :124CT
5, XYZ Lane , Postcode :124R
6, XYZ Lane , Postcode :32CT
6, XYZ Land , Postcode :32H
9, XYZ Lane , Postcode :12CT

 

Example Measure -> Exact Match address should be 2 here , 

address 11, XYZ Lane , Postcode :123 and 5, XYZ Lane , Postcode :124 are exact match here with multiple rows. 

 

Can someone please help me in writing the measure?

Thanks in advance. 

 

 

 

1 ACCEPTED SOLUTION
DataInsights
Super User
Super User

@AOD,

 

Try this measure:

 

Count Exact Match = 
VAR vTable =
    ADDCOLUMNS (
        VALUES ( 'Address'[Address] ),
        "@Count", CALCULATE ( COUNT ( 'Address'[Address] ) )
    )
VAR vResult =
    COUNTROWS ( FILTER ( vTable, [@Count] > 1 ) )
RETURN
    vResult

 

DataInsights_0-1664044638847.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

1 REPLY 1
DataInsights
Super User
Super User

@AOD,

 

Try this measure:

 

Count Exact Match = 
VAR vTable =
    ADDCOLUMNS (
        VALUES ( 'Address'[Address] ),
        "@Count", CALCULATE ( COUNT ( 'Address'[Address] ) )
    )
VAR vResult =
    COUNTROWS ( FILTER ( vTable, [@Count] > 1 ) )
RETURN
    vResult

 

DataInsights_0-1664044638847.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.