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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Anonymous
Not applicable

remove selective duplicate in columns

 
5 REPLIES 5
Mariusz
Community Champion
Community Champion

Hi @Anonymous 

 

Try using Group By instead, select both columns and hit Group By, if you want to keep all other fields you can add them as aggregation like MAX or MIN 

 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
Mariusz Repczynski

 

Anonymous
Not applicable

why is it using max or min? not kinda sure on how do you do it when u group by the other two columns.

Hi @Anonymous 

 

If you want to get unique values from "BR" and "Chassis" you will have to do something about the rest of the columns.

  1. Remove them 
  2. Aggregate them ( count, sum, min or max ) 
  3. Include in the group.

when you use remove duplicates it will use do a similar thing ( take the unique values of selected columns and take first value of every other column not included in the selection ) 

 

What would be the desired outcome that you are expecting?

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
Mariusz Repczynski

 

Anonymous
Not applicable

Hi the outcome is actually that. it's just the when i remove both br and chassis it doesnt match my excel total number of rows.
in excel when i remove both its "8737" but in power bi is 8725 im guessing its because it only remove the chassis duplicates 😞

it is possible to give me a step on how you do your solution?  thanks

Hi @Anonymous 

 

Could you please kindly share your sample pbix that we can draw it up for you?

Make sure you've shield the confidential info before sharing. 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.