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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
wolfy_
Helper I
Helper I

Find duplicate values diferent projects

Hi,

 

It is possible to have a measure that find me duplicate values for project IDs in the same location?

 

For example, there is project ID 1 for the same location Lisbon.
The same happens with Porto location that have the project ID 17 duplicated.

 

LocationProject IDReturn
Lisbon1500
Porto17650
Santarem1780
Lisbon2250
Santarem2589
Faro1785
Lisbon1658
Aveiro1500
Porto2200
Porto3300
Porto17258

 

Thanks in avance

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @wolfy_,

 

In my opinion, you can calculate count and distinct count of specific project id from same location. Then calculate the diff between them, It should be the duplicate id count.

Measure =
CALCULATE (
    COUNT ( Table[Project ID] ) - DISTINCTCOUNT ( Table[Project ID] ),
    ALLSELECTED ( Table ),
    VALUES ( Table[Location] )
)

 

Regards,

Xiaoxin Sheng

View solution in original post

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

 

You can drag Location and Project ID to the row labels and write this measure

 

=COUNTROWS(Data)

 

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi @wolfy_,

 

In my opinion, you can calculate count and distinct count of specific project id from same location. Then calculate the diff between them, It should be the duplicate id count.

Measure =
CALCULATE (
    COUNT ( Table[Project ID] ) - DISTINCTCOUNT ( Table[Project ID] ),
    ALLSELECTED ( Table ),
    VALUES ( Table[Location] )
)

 

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors