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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
kevinedora
Helper I
Helper I

Duplicate Identifier

Hi,

 

Need help, i need to identify a duplicate within a date range. Below table is an example, i wanted to know if last month (June) if i have a duplicate ID and category = "Charged" then I want my tagging to be duplicate so I can exclude that ID from last month.

 

DateIDCategory
06/13/202412344Charged
06/14/202412345No
07/01/2024   12344No Charge
07/08/2024   12345No Charge

 

Desired Result:

 

DateIDCategoryTagging
06/13/202412344ChargedDuplicate
06/14/202412345Nono
07/01/2024   12344No Chargeno
07/08/2024   12345No ChargeOriginal

 

I'll greatly appreciate if this can be dynamic as well since I have 1 year worth of data.

1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

@kevinedora 

you can try this

 

Column =
var _check=maxx(FILTER('Table','Table'[Date]>EOMONTH(EARLIER('Table'[Date]),0)&&'Table'[Date]<=EOMONTH(EARLIER('Table'[Date]),1)&&'Table'[ID]=EARLIER('Table'[ID])),'Table'[Date])
return if('Table'[Category]="Charged"&&not(ISBLANK(_check)),"Duplicated")
 
11.PNG




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

Proud to be a Super User!




View solution in original post

2 REPLIES 2
Ray_Minds
Solution Supplier
Solution Supplier

Hi @kevinedora 
Duplicate Values = CALCULATE(COUNT('Sheet1 (2)'[Section]),FILTER('Sheet1 (2)','Sheet1 (2)'[Section]= EARLIER('Sheet1 (2)'[Section])))

Ray_Minds_0-1721319117036.png

 

If your requirement is solved, please make THIS ANSWER a SOLUTION ✔️ and help other users find the solution quickly. Please hit the LIKE 👍 button if this comment helps you.

ryan_mayu
Super User
Super User

@kevinedora 

you can try this

 

Column =
var _check=maxx(FILTER('Table','Table'[Date]>EOMONTH(EARLIER('Table'[Date]),0)&&'Table'[Date]<=EOMONTH(EARLIER('Table'[Date]),1)&&'Table'[ID]=EARLIER('Table'[ID])),'Table'[Date])
return if('Table'[Category]="Charged"&&not(ISBLANK(_check)),"Duplicated")
 
11.PNG




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

Proud to be a Super User!




Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.