Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi All
I have a table that has duplication in the rows with the exception of 1 column. I've tried to remove certain rows by maniplating some examples which I found but am having trouble trying to get the end result I need.
What I'm trying to do in power query is to remove the entire row if there are any duplicates in the "itemid" column and there is also a "D" in the "Status" column. Here is a before and after look of what I'm trying to do...
Would anyone know if or how I can achieve this?
Thanks
onedayover
Solved! Go to Solution.
Hi,
This is my solution based on the sample data :
1- I created the Duplicated columns for the ItemId and Status
2- Merge created columns (Copy-Itemid and Copy-Status)
3- Sort rows Ascending on the Merged column :
4- Select the Columns (as below) and remove the duplicated records :
Also, you could delete the merged column
Appreciate your Kudos and please mark it as a solution if it helps you.
Hi,
This is my solution based on the sample data :
1- I created the Duplicated columns for the ItemId and Status
2- Merge created columns (Copy-Itemid and Copy-Status)
3- Sort rows Ascending on the Merged column :
4- Select the Columns (as below) and remove the duplicated records :
Also, you could delete the merged column
Appreciate your Kudos and please mark it as a solution if it helps you.
Works perfectly, thank you MahyarTF, your help is much appreciated 🙂
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
70 | |
57 | |
37 | |
36 |
User | Count |
---|---|
85 | |
65 | |
60 | |
46 | |
45 |