Forum Discussion

PowerBINoob24's avatar
PowerBINoob24
Resolver I
3 years ago
Solved

Keep Duplicates in Summarized Table

I created a table using the Summarize function and I would like to keep the duplicates and remove everything else; however, when I go into power query I only see the actual data table that have been ...
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi PowerBINoob24 ,

     

    Please try this:

    Table =
    VAR _table =
        SUMMARIZE ( 'Table1', 'Table1'[E-Mail], 'Table1'[Value] )
    VAR _filter_table =
        FILTER (
            'Table1',
            CALCULATE (
                COUNT ( 'Table1'[E-Mail] ),
                FILTER ( ALL ( 'Table1' ), 'Table1'[E-Mail] = EARLIER ( 'Table1'[E-Mail] ) )
            ) > 1
        )
    RETURN
        _filter_table

    Table1:

    Table:

    Best Regards,
    Gao

    Community Support Team

     

    If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

    How to get your questions answered quickly --  How to provide sample data in the Power BI Forum