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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Comparing IDs to identify duplicates (parent/child)

Hello,

 

I have been trying to solve this issue for a while now, on the blink of giving up...

 

I have the below table which is a ragged hierarchical matrix. I am trying to solve the issue of having duplicates, but got  to a dead end that does not make much sense to me...

 

The logic consists of setting up the levels, and defining the leaf (when the node is the last) as true. If true, I hide it, else I show it.

 

It works for some records, while it doesn't for others (no clue why). Highlighted are the abnormally behaving records. Any help would be greatly appreciated!

 

Thanks,

Anthony

 

Capture.PNG

 

 

 
7 REPLIES 7
az38
Community Champion
Community Champion

Hi @Anonymous 

at first, good practice is to produce trim transform operation in power query editor mode for compared columns Parent and Formatted

 

do not hesitate to give a kudo to useful posts and mark solutions as solution


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Anonymous
Not applicable

Hi @az38,

 

Thank you for the prompt reply.

 

Both columns don't have any whitespaces. The behavior is a bit weird though. I do not really understand why it is not working as intended...

az38
Community Champion
Community Champion

@Anonymous 

so, if you create a simple calculated column for debug, like

Debug Column = IF([Parent PMOID]=[Formatted PMOID], true(), false())

will it return true for all your mistaken rows?

 

do not hesitate to give a kudo to useful posts and mark solutions as solution


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Anonymous
Not applicable

It is only returning false for all the rows.

I followed a somewhat similar approach created for pivots on Excel. I feel like I am 99% there, but still not there 😞

 

Here's the link to the followed solution: Parent-child solution 

az38
Community Champion
Community Champion

@Anonymous 

how does your data look like in your origin data source?

 

do not hesitate to give a kudo to useful posts and mark solutions as solution


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Anonymous
Not applicable

Link to sample document 

 

I made sure to create the balanced hierarchy for each level based on the tutorial in the previously provided link

az38
Community Champion
Community Champion

Hi @Anonymous 

i wasnt able to repeat your scenario fith dummy data but what ive seen is the "First" isLeaf aggregation.

what if you will try "Last"?

and try to set "Show items with no data" flag for rows

 

do not hesitate to give a kudo to useful posts and mark solutions as solution


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.