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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply

Help With Duplicate Values

Hello -

 

I am having an issue with a data import and feel like I am missing something simple. Any help is appreciated.

 

I am importing data using a SQL command (picture below).

SQL Query.PNG

 

The way this query is written with the Group By I should only have one row per account number.

 

When I Apply Changes, it tells me there is a duplicate value. If I create a table visual and do count of account number, I see two instances of the account number.

 

AccountNumber.PNG

 

However, when I return to the PowerQuery editor and remove duplicates and filter by that account number, I only see one row

 

FilteredTable.PNG

 

And when I execute the SQL query and limit to the account number in question, I get one row.

 

SQL Results.PNG

 

I have been working in PBI for over two years now and have never seen this issue. So what I am doing wrong here or what am I missing that is causing the particular value to show up as a duplicate? And it is it he only duplicate value in the table.

 

Any help is appreciated..

 

Matt

1 REPLY 1
v-eachen-msft
Community Support
Community Support

Hi @matthew_hampton ,

 

You could try the following DAX:

Measure =
CALCULATE (
    COUNT ( 'Query1'[AccountNumber] ),
    ALLEXCEPT ( 'Query1', 'Query1'[AccountNumber] )
)

If the result is 1, you could check if the data contains blank value. 

 

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

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.