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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Create a new table with the sum of values of another table per ID

I need to have the sum of values of a table in individual rows per id in a separate table. Example:

Original table:
ID     Value

1     5

1     2

1     3

2     2

2     4

3     3


Desired table:

ID     Sum of Values

1     10

2     6

3     3


How do I manage this?

 

The reason I need it in another table is because I want to do a relationshipt between the desired table and another table. And when I use the original table, I am getting a many to many relationship, which is not ideal

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , you can create a new table like

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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , you can create a new table like

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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors