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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

SUM values ​​from another table with LOOKUPVALUE

Hello,
I have two tables with this structure:
TABLE1

IDAbstract_Weight    
ID001     10
ID0023
ID0035

 

TABLE2

IDHot_Weight    Cold_Weight   
ID001      13
ID0011,50
ID00121
ID00252
ID00241


I want to create columns in my TABLE1 where I can use the LOOKUPVALUE with SUM and with that, get the sum of the cold weight and hot weight values ​​for all distinct IDs. The expected result would be this:

IDAbstract_Weight    Hot_Weight    Cold_Weight    
ID001     104,54
ID002393
ID003500



1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

Please have a try.

Create 2 columns.

hot_Weight1 = CALCULATE(SUM('Table2'[Hot_Weight]),FILTER('Table2',[ID] =EARLIER(Table1[ID])))+0
Cold_Weight1 = CALCULATE(SUM('Table2'[Cold_Weight]),FILTER('Table2',[ID] =EARLIER(Table1[ID])))+0

vrongtiepmsft_0-1687489014815.png

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

If you can create a Many to one relationship from Table2 to Table, then write these calculated column formulas in Table1

CW = CALCULATE(SUM(Table2[Cold_Weight]),RELATEDTABLE(Table2))
HW = CALCULATE(SUM(Table2[Hot_Weight]),RELATEDTABLE(Table2))

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi @Anonymous ,

Please have a try.

Create 2 columns.

hot_Weight1 = CALCULATE(SUM('Table2'[Hot_Weight]),FILTER('Table2',[ID] =EARLIER(Table1[ID])))+0
Cold_Weight1 = CALCULATE(SUM('Table2'[Cold_Weight]),FILTER('Table2',[ID] =EARLIER(Table1[ID])))+0

vrongtiepmsft_0-1687489014815.png

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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
Top Kudoed Authors