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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
kellyylx
Helper I
Helper I

Identify duplicates

Hi, I have this unsorted table 

contact namelast activity > 2 years ago
AdamTRUE
OliviaFALSE
PaulineFALSE
ClariceTRUE
Dominic FALSE
RubyFALSE
OliviaTRUE
RubyFALSE
AdamFALSE
AdamFALSE

 

and i want to filter out these records where at least one of the duplicate records have last activity > 2 years ago as TRUE

contact namelast activity > 2 years ago
AdamTRUE
AdamFALSE
AdamFALSE
OliviaTRUE
OliviaFALSE

 

it would be great if i can do this under the table view instead of in transform data because the table is very large and operations are very slow. but if there is no way to do this under the table view, please let me know how to do it in the Advanced editor as well.

 

Thanks in advance!

1 ACCEPTED SOLUTION
rajendraongole1
Super User
Super User

Hi @kellyylx - Create a New Calculated Column: Add a DAX calculated column to your table to check whether any record for each contact name has last activity > 2 years ago set to TRUE.

replace with your model table name use below logic:

calculated column:

FlagHasTrue =
CALCULATE(
MAX('YourTableName'[last activity > 2 years ago]),
ALLEXCEPT('YourTableName', 'YourTableName'[contact name])
)

Now, create a table or matrix visual where you can apply a filter on this new FlagHasTrue column. Set the filter condition to show rows where FlagHasTrue = TRUE. This will retain all rows of the contact names that have at least one record with "last activity > 2 years ago" as TRUE.

Hope this helps.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

1 REPLY 1
rajendraongole1
Super User
Super User

Hi @kellyylx - Create a New Calculated Column: Add a DAX calculated column to your table to check whether any record for each contact name has last activity > 2 years ago set to TRUE.

replace with your model table name use below logic:

calculated column:

FlagHasTrue =
CALCULATE(
MAX('YourTableName'[last activity > 2 years ago]),
ALLEXCEPT('YourTableName', 'YourTableName'[contact name])
)

Now, create a table or matrix visual where you can apply a filter on this new FlagHasTrue column. Set the filter condition to show rows where FlagHasTrue = TRUE. This will retain all rows of the contact names that have at least one record with "last activity > 2 years ago" as TRUE.

Hope this helps.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.