Forum Discussion
PowerBINoob24
Resolver I
3 years agoKeep 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 ...
- Anonymous3 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_tableTable1:
Table:
Best Regards,
Gao
Community Support TeamIf 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
PowerBINoob24
Resolver I
3 years agoThanks for this; however, I've never used M code before. I assume it's used in the same way as DAX. I'm not clear though...your code has "source = excel.currentworkbook" I need to use this in a power BI dashboard, not excel.
Ashish_Mathur
Super User
3 years agoYou are welcome. The name of the Table is Data. Click on Transform data and paste the code there.