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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Tmk123
Helper II
Helper II

Calculated Column that returns duplicate values

Hi, 

 

We have duplicate items in our ERP.  They all have the same Supplier SKU number but have a new Item number in the ERP.

 

The "Duplicate Item" column is my goal.

 

Sample Data:

 

ItemSupplier SKUDuplicate Item
B406-0384938Q31840114
401144938Q318B406-038
B422-365MEL21B401-276, 40036
B401-276MEL21B422-365, 40036
40036MEL21

B422-365, B401-276

 

Ideally, I would like to create a calcuated column that can concatenate the duplicate value.  This information is held in the same table.  If that can't be done in a calcuated column, is creating a new table easier?

 

Thanks all!

1 ACCEPTED SOLUTION
gmsamborn
Super User
Super User

Hi @Tmk123 

 

Would a column like this help?

Column = 
    CONCATENATEX(
        FILTER(
            'Table',
            [Supplier SKU] = EARLIER( 'Table'[Supplier SKU] )
                && [Item] <> EARLIER( 'Table'[Item] )
        ),
        [Item],
        ", ",
        [Item]
    )

 

Tmk123.pbix

 



Proud to be a Super User!

daxformatter.com makes life EASIER!

View solution in original post

2 REPLIES 2
gmsamborn
Super User
Super User

Hi @Tmk123 

 

Would a column like this help?

Column = 
    CONCATENATEX(
        FILTER(
            'Table',
            [Supplier SKU] = EARLIER( 'Table'[Supplier SKU] )
                && [Item] <> EARLIER( 'Table'[Item] )
        ),
        [Item],
        ", ",
        [Item]
    )

 

Tmk123.pbix

 



Proud to be a Super User!

daxformatter.com makes life EASIER!

Learned something new.  Thank you!!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.