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
sigridr
Helper I
Helper I

Grouped sums of column values

Hello, 

 

I have a table with values between 1-5 and ID numbers. 

Something like the table below. 

How do I find (/create a column or a table?) with the sums of values grouped by ID? 

IDValue
143
142
145
141
275
275
275
274
393
394
394
393

 

How do I find (/create a column or a table?) with the sums of values grouped by ID? 

So like this: 

IDSum
1411
2719
3914

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@sigridr , Pu them in a visual ID ( Don't Summarize) and value as SUm or use measure

sum(Table[Value])

 

 

If you need new table, Power Query group by

https://docs.microsoft.com/en-us/power-query/group-by

 

Dax

new table = summarize(table, Table[ID], "Sum", sum(Table[Value]) )

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@sigridr , Pu them in a visual ID ( Don't Summarize) and value as SUm or use measure

sum(Table[Value])

 

 

If you need new table, Power Query group by

https://docs.microsoft.com/en-us/power-query/group-by

 

Dax

new table = summarize(table, Table[ID], "Sum", sum(Table[Value]) )

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.