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

View all the Fabric Data Days sessions on demand. View schedule

Reply
AndreT
Helper I
Helper I

complex duplications

Hi, I'm looking for the way to eliminate a bit more complex duplicates. The rule would be something along those lines: If: the same job category, same date and postcode, then deduplicate entry which has lower or same calculated value (Open=1, Booked=2, Closed=3). If same deduplicate on later entry. Column with calculated value has been already created. But does anyone know how to create that deduplication query? Many thanks in Advance!

2 REPLIES 2
v-sihou-msft
Microsoft Employee
Microsoft Employee

@AndreT

 

According to your description, you want to keep the row with biggest value within category, date, and postcode group. Right?

 

In this scenario, you just need to use SUMMARIZE to aggregate entries on category, date and postcode level.

 

Calculated Table =
SUMMARIZE (
    Table,
    Table[category],
    Table[date],
    Table[postcode],
    "Status", MAX ( Table[Status Code] )
)

Regards,

 

Hi Simon,

Sorry for a late reply.

That part worked! But I need other columns too in the table, unless I can somhow link it back to the Orginal table, which contains Job ID, booked.

 

Also  Is there a fast way of exportingtoa CV with such calcualted table to check if everything worked properly?

 

Many Thanks

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors