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
ATMC
Regular Visitor

Duplicate Text String in Column

I have merged 2 tables based on a unique ID #, in one of the tables there is multiple rows of values (text) based on the same ID#, when the merge was done new rows where added based on the multiple values for the unique ID# and the text in other columns adjacent was duplicated in the added rows. My problem is that now my counts for these coloumns is out based on the duplicate text. Is there a way to filter and/or remove the duplicate text from the added rows so the duplicate values are not counted? 

4 REPLIES 4
tackytechtom
Most Valuable Professional
Most Valuable Professional

Hi @ATMC ,

 

Could you provide an example? 🙂

 

Thanks!

 

/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

ATMC_2-1670805113908.png

 

Hard to give you an example from the actual table but from the screenshot, Need to keep the text in the first row of the Blue box, remove the duplicates but keep the three rows adjacent in the orange box

 

 

Anonymous
Not applicable

Hi @ATMC ,

 

You can do as follows.

Sample data.

vstephenmsft_0-1670836536697.png

 

1.Select [Risk Register] column to group by. In the operation select "All Rows".

vstephenmsft_1-1670836569404.png

vstephenmsft_2-1670836636685.png

2.Add a custom column to add an index column.

vstephenmsft_3-1670836655441.png

vstephenmsft_5-1670836683452.png

3.Expand the Custom column and add a conditional column.

vstephenmsft_7-1670836737920.png

vstephenmsft_6-1670836727454.png

vstephenmsft_8-1670836758248.png

4.Remove the unneeded columns and rename the conditional column as "Risk Regiter".

vstephenmsft_9-1670836766603.png

 

Best Regards,

Stephen Tao

 

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

 

 

Hi,

Thanks for your help on this, unfortunately your solution did not return the results I was after, Thanks again,

Best Regards

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.

Top Solution Authors