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
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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors