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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
scsos
New Member

learning pbi

Hi,

 

trying to grup data by person's name and sum the amount but get an error when doing so

 

scsos_0-1763268734461.png

 

scsos_1-1763268769555.png

 

tia

 

2 ACCEPTED SOLUTIONS
tharunkumarRTK
Super User
Super User

@scsos 

Amount column data type is "Text", to perform SUM aggregation you should change it to "Whole number" or "Decimal Number" if the numeric values have decimals

 

Click on the "ABC" button before "Amount" column and select the data and then perform the GROUP BY transformation 

 

Hope this helps

 

 

 

Connect on LinkedIn

 

 

 








Did I answer your question? Mark my post as a solution!
If I helped you, click on the Thumbs Up to give Kudos.

Proud to be a Super User!


PBI_SuperUser_Rank@2x.png

View solution in original post

Shubham_rai955
Super User
Super User

The error you are seeing when trying to group and sum the "Amount" column by "Person" in Power Query is likely caused by the "Amount" column containing text values instead of numbers. Power Query throws an error if you try to sum a column with non-numeric data.

How to Fix

  • Ensure that the "Amount" column is set to the "Whole Number" or "Decimal Number" data type before performing the group and sum operation.

  • In Power Query, select the "Amount" column, go to the "Transform" tab, and choose "Data Type" → "Whole Number" or "Decimal Number."

  • After changing the type, retry the Group By operation—this should resolve the error, and you'll get the correct sum for each person.

This will allow Power Query to sum the numbers correctly and remove the errors in your grouped table.

View solution in original post

4 REPLIES 4
v-achippa
Community Support
Community Support

Hi @scsos,

 

Thank you for reaching out to Microsoft Fabric Community.

 

Thank you @tharunkumarRTK and @Shubham_rai955 for the prompt response. 

 

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided by the user's for the issue worked? or let us know if you need any further assistance.

 

Thanks and regards,

Anjan Kumar Chippa

Shubham_rai955
Super User
Super User

The error you are seeing when trying to group and sum the "Amount" column by "Person" in Power Query is likely caused by the "Amount" column containing text values instead of numbers. Power Query throws an error if you try to sum a column with non-numeric data.

How to Fix

  • Ensure that the "Amount" column is set to the "Whole Number" or "Decimal Number" data type before performing the group and sum operation.

  • In Power Query, select the "Amount" column, go to the "Transform" tab, and choose "Data Type" → "Whole Number" or "Decimal Number."

  • After changing the type, retry the Group By operation—this should resolve the error, and you'll get the correct sum for each person.

This will allow Power Query to sum the numbers correctly and remove the errors in your grouped table.

scsos
New Member

Hi,

 

tried posting this already but can't see the post in the forum.

 

I'm trying to group by name and sum the Amount but getting an error

 

scsos_1-1763269187766.png

 

scsos_0-1763269140769.png

 

tia

tharunkumarRTK
Super User
Super User

@scsos 

Amount column data type is "Text", to perform SUM aggregation you should change it to "Whole number" or "Decimal Number" if the numeric values have decimals

 

Click on the "ABC" button before "Amount" column and select the data and then perform the GROUP BY transformation 

 

Hope this helps

 

 

 

Connect on LinkedIn

 

 

 








Did I answer your question? Mark my post as a solution!
If I helped you, click on the Thumbs Up to give Kudos.

Proud to be a Super User!


PBI_SuperUser_Rank@2x.png

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.