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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
SK2
New Member

Remove Duplicate rows by getting value in separate columns

Hi ,

I am new to Power BI and trying to remove duplicates.

Can anyone please help me with this?

 

This is what i have 

SK2_0-1697040499586.png

And trying to get it like below.

SK2_1-1697040526275.png

Thanks for your time

8 REPLIES 8
Erokor
Resolver II
Resolver II

In Power Query, you can use the "Transpose" feature. Which should get you what youa re looking for. However, you'll need to re-title your column headers.

 

Alternatively in a "Matrix" visual. You can put the "SH" in the "Rows" portion, and the "Status" in the "Column" and "Values" portion of the visual. You'll also want to set your Aggrigation's appropriately for the "Values" so that it does not sum/count etc.

I tried the matrix visual , and it shows me this 

SK2_0-1697041783532.png

I added "status" in values portion of visuals - but it changes to count of status .And shows like 

SK2_1-1697042082321.png

 

If you select the little carrot to the right of the "Count of Status" you can then adjust that to "First" or last. Since you only have the value once for each number in the header it would show 1 for 1.

 

This is really a hacky way to do it. The better way would be to model your data properly up front (using Transpose as I mentioned before).

Got it . i tried the other way also 

SK2_0-1697043752860.png

 

Great! If my solution helped you to achieve the result you are looking for, please select it as a solution to help others find the help they might need in this instance!

Actually , if you look the values in column SH  are also shown in all columns , So i am still struggling 

SK2_0-1697044174769.png

 

Go up a step, and only select the column you want to transpose. You don't want the 373306 column to be transposed.

Yes, Thats what i did , just select status column and did transpose , but it is not the result i  am looking

SK2_0-1697044848890.png

 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.