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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Not applicable

Having difficulties with using group by columns

Hello, I'm having difficulties with group by function.


I was trying to calculate specific column by using group by with sum of specific column, but it didn't work.


Instead, a message is constatntly appears that specific column contains duplicate value that cannot be applied.


I Don't know why this message is constantly appears and why my calculation is not working.




Solution Sage
Solution Sage

Assuming you are using the Group By feature in Power Query, I have run into issues in the past with trailing spaces existing in cells that are not easily seen. Power Query doesn't group them together but when loading into Power BI you get the error that a single value has duplicate. Long story short I use the TRIM feature on my grouping column prior to grouping in Power Query to get rid of unwanted whitespaces.

Hope this helps.

Helpful resources

Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.