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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
jguy
Frequent Visitor

Cleaning up duplicates

I'm importing data from a SQL server for a look up table and am running into an issue with duplicate records. I have tried using the 'Remove Duplicates' option, but am having no luck. I have exported the table into excel to identify the duplicate records, and they are showing up like this:

 

HF-TRH2
HF-TRH2
182699
184529
186358
188188
2400-3-17
2405-3-21
2410-3-24
2415-3-28
005001
5001
3/17/2400
3/21/2405
3/24/2410
3/28/2415

 

These are supposed to be product numbers. Excel is identifying them as duplicate values via conditional formatting.

 

Is there a way I can remove just these records, or is this something I am going to have to get done on the SQL side of things before import?

 

Apologies if this is a bit of a newb question. I have only been working with Power BI for a few weeks, and this is my first real go at building a decent data model.

 

Thanks!

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @jguy ,

You can turn on advanced option and use t-sql query to get distinct records from power bi side.

Visualize data using the Azure Data Explorer connector for Power BI

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

3 REPLIES 3
v-shex-msft
Community Support
Community Support

Hi @jguy ,

You can turn on advanced option and use t-sql query to get distinct records from power bi side.

Visualize data using the Azure Data Explorer connector for Power BI

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Will this let me go in and remove those records and reload the table?

Hi @jguy ,

When you add t-sql query to connector, power bi will use this query on your database and receive the result table. 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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