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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
v-jayw-msft
Community Support
Community Support

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

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

8 REPLIES 8
v-jayw-msft
Community Support
Community Support

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

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
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])

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
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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