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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

How to find the Duplicate in a Date Range

Hi team,

 

Please note my sample data !

 

TAF_START_DATETAF_END_DATESTORE_NUMBERITEM_CODETAFStutsDuplicate
22-05-2019 00:0018-06-2019 00:006110004381.011 
22-05-2019 00:0018-06-2019 00:006210004381.011 
23-05-2019 00:0030-06-2019 00:006210004381.011Yes
22-05-2019 00:0018-06-2019 00:0082110004381.011 

 

Here i need to find the overlapping duplicates in the data.

That is any item's are having duplicate TAF.See here the example Taf starting from 22-05-19 and ending 18-06-2019 and another taf is starting 23-05-2019 and ending 30-06-2019.That means the period is overlapping and its duplicated.Any idea to find the duplicates in this scenario.

1 ACCEPTED SOLUTION
v-yuta-msft
Community Support
Community Support

@Anonymous ,

 

Create a calculate column using DAX below:

Duplicate = IF(CALCULATE(COUNT('Table'[TAF_START_DATE]), ALLEXCEPT('Table', 'Table'[TAF_START_DATE])) > 1, "Yes", "No")

Capture.PNG 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yuta-msft
Community Support
Community Support

@Anonymous ,

 

Create a calculate column using DAX below:

Duplicate = IF(CALCULATE(COUNT('Table'[TAF_START_DATE]), ALLEXCEPT('Table', 'Table'[TAF_START_DATE])) > 1, "Yes", "No")

Capture.PNG 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi @v-yuta-msft ,

 

This is not works...The first one also showing 'Yes'

 

I have to find in between the data range.

 

TAF Dup.PNG

 

Thank you for your time..

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.