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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

Display only repeated number

Hi,

I want to create a column which ID's are repeted from column ID.

 

IdTypeStatus
RADOC0010024RADCancelled
RADOC0010024RADCancelled
RADOC0010056RADCancelled
RADOC0010063RADCancelled
RADOC0010076RADCancelled
RADOC0010079RADCancelled
RADOC0010079RADCancelled
RADOC0010079RADCancelled
RADOC0010090RADCancelled
RADOC0010111RADCancelled
RADOC0010141RADCancelled
RADOC0010144RADCancelled
RADOC0010144RADCancelled
RADOC0010179RADCancelled
RADOC0010211RADCancelled
RADOC0010211RADCancelled
RADOC0010211RADCancelled
RADOC0010281RADCancelled
RADOC0010282RADCancelled
RADOC0010284RADCancelled
RADOC0010284RADCancelled

 

Thanks !

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

Create a calculated column on original table.

Column = CALCULATE(COUNT('Table'[Id]),ALLEXCEPT('Table','Table'[Id]))

 9.PNG

Then create a new table and filter out the records which count <=1.

Table 2 = DISTINCT(SELECTCOLUMNS(FILTER('Table','Table'[Column]>1),"id",'Table'[Id]))

10.PNG

 

Best Regards,

Jay

View solution in original post

8 REPLIES 8
Anonymous
Not applicable

Hi @Anonymous ,

 

Create a calculated column on original table.

Column = CALCULATE(COUNT('Table'[Id]),ALLEXCEPT('Table','Table'[Id]))

 9.PNG

Then create a new table and filter out the records which count <=1.

Table 2 = DISTINCT(SELECTCOLUMNS(FILTER('Table','Table'[Column]>1),"id",'Table'[Id]))

10.PNG

 

Best Regards,

Jay

PhilipTreacy
Super User
Super User

Hi @Anonymous 

Download this PBIX file with the following solutions

This works to create a Calculated Column

Count Dup = 
Var ids = [Id]
RETURN

CALCULATE(
    COUNTROWS('Table'),
    ALL('Table'),
    'Table'[Id] = ids
)

dax-dup-count.PNG

 

or you can do it in Power Query.  Group By ID and then choose Count as the aggregation.

pq-dup-count.PNG

With both methods just filter out the count's less than 2.

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Anonymous
Not applicable

Anonymous
Not applicable

@Anonymous 

I am trying to refer the links but EARLIER function is not working.
please find image attached.

raks3_0-1610631679481.png

Could you please help me on this .

 

Thanks !

 

Anonymous
Not applicable

Count Emails = 
Var Emails = [Emails]
RETURN

CALCULATE(
    COUNTROWS('Your Table'),
    all('Your Table'),
    'Your Table'[Emails] = Emails
)

You can try this one. Available in the 1st link @Anonymous 
amitchandak
Super User
Super User

@Anonymous , You might have create a table

distinct(Table[Id])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak ,

I want to show only repeated ID not the distnict ID.

 

Anonymous
Not applicable

Hey If my answer was helpful please mark it as a solution @Anonymous 

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.