Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

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 !

  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi Anonymous ,

     

    Create a calculated column on original table.

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

     

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

     

    Best Regards,

    Jay

8 Replies

    • Anonymous's avatar
      Anonymous
      Not applicable

      amitchandak ,

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

       

      • Anonymous's avatar
        Anonymous
        Not applicable

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

    • Anonymous's avatar
      Anonymous
      Not applicable

      Anonymous 

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

      Could you please help me on this .

       

      Thanks !

       

      • Anonymous's avatar
        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 
  • 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
    )

     

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

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

    Regards

    Phil

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous ,

     

    Create a calculated column on original table.

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

     

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

     

    Best Regards,

    Jay