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
Anonymous
Not applicable

Group By Power Query Not Working Properly

Hi,

 

I am using Group By in Power Query and it is not working properly. Before using Group By, I have some duplicates of 2 and 3. After using Group By on multiple columns, it has now become 2. However, I thought Group By would've "removed" the duplicates?

 

This is what I set on my Group By function.

 

groupb1.PNG

 

And this is what I got when I apply the query. (note that the "No Date Available" is just me replacing some values with the text and the group by clause was used before this).

 

Groupby.PNG

 

 

Theoretically, the first two column would be condensed into one with PurchaseDate 5/15/2014 and UseDate 8/28/2014. But it's not doing so. Besides that, when I filter the number of the first two rows in Power Query, I get only 1 line, but it is not right as the UseDate should be 8/28/2014 instead of NoDateAvailable.

 

groupb3.PNG

 

 

Anyone knows what's wrong with this?

 

Thanks!

Daren

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I found out what the problem was. In Power Query, uppercased and lowercased letters are considered to be different, however, in Power BI, there are the same. That's why it appeared in Power BI table view as duplicates and group by didn't work on Power Query. After standardizing them, it worked correctly.

 

Thanks.

Daren

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi Darentengdrake,

please tell me how you standardized and solved groupby issue. in power query to your case

az38
Community Champion
Community Champion

Hi @Anonymous 

are you sure its exactly the same items?

did you try trim it before grouping?

 

do not hesitate to give a kudo to useful posts and mark solutions as solution


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Anonymous
Not applicable

Hi @az38

Although I didn't trim them, but I believe they should be the same because I did a count for duplicates and sorted them ascending. If the count is 2 it means the first two rows of the sorted table would be the same.

Daren
Anonymous
Not applicable

I found out what the problem was. In Power Query, uppercased and lowercased letters are considered to be different, however, in Power BI, there are the same. That's why it appeared in Power BI table view as duplicates and group by didn't work on Power Query. After standardizing them, it worked correctly.

 

Thanks.

Daren

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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