Reply
avatar user
Anonymous
Not applicable

Creating a Calculated Column from Two Different Tables

Hello,

 

I am trying to figure out how to creating a new column using different tables.

 

Table X and Table Y have a one to many relationship. 

 

I basically want to sum an integer type column for each row from Table Y that matches with Table X. So I am assuming the new column should be on Table X.

 

Just started using Power BI so I apologize beforehand if I am missing any important info.

 

Thanks

 

  

1 ACCEPTED SOLUTION
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous,

 

Have you solved your problem with the answer of @Zubair_Muhammad?

 

If you have soved your question, please accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.

 

If you still need help, could you share a dummy pbix file which can reproduce the scenario and your expected output, so that we can help further investigate on it? You can upload it to OneDrive or Dropbox and post the link here. Do mask sensitive data before uploading.)

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
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-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous,

 

Have you solved your problem with the answer of @Zubair_Muhammad?

 

If you have soved your question, please accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.

 

If you still need help, could you share a dummy pbix file which can reproduce the scenario and your expected output, so that we can help further investigate on it? You can upload it to OneDrive or Dropbox and post the link here. Do mask sensitive data before uploading.)

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Ashish_Mathur
Super User
Super User

Hi,

 

Share a dataset and also show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Zubair_Muhammad
Community Champion
Community Champion

@Anonymous

 

As a calculated column on one side table...normally we can use

 

Column in Table X= Calculate(sum(TableY[ColumnName]))
avatar user

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)