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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
Anonymous
Not applicable

SUMX - How do sum information from one table into another

I would like sum in a lookupvalue. Is that possible or is there another command(s) that I need to look at to achieve my desired outcome?

I have a budget table with a field and would like to scan a transaction table with the same field name. How do I sum all the transactions and put the total into the budget table?

enter image description here

I am wanting to sum the transactions to the corresponding field(s) in the Budget Table.

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@Anonymous,

 

You may add a calculated column as follows.

Column =
SUMX (
    FILTER ( 'Transaction', 'Transaction'[_link] = Budget[_link] ),
    'Transaction'[_amt]
)
Community Support Team _ Sam Zha
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

3 REPLIES 3
v-chuncz-msft
Community Support
Community Support

@Anonymous,

 

You may add a calculated column as follows.

Column =
SUMX (
    FILTER ( 'Transaction', 'Transaction'[_link] = Budget[_link] ),
    'Transaction'[_amt]
)
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Your code works like a champ, Sam. Thank you for your time and effort. It is greatly appreciated.

 

Respectfully,

 

Jonathan M*

Anonymous
Not applicable

Thank you for your answer, Sam.  I get the following message when I put in the code:

 

A single value for column 'Budget Order' in table '_2018_Budget' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result.

 

Any thoughts?

 

Respectfully,

 

Jonathan M*

 

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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