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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Lukaszj
Frequent Visitor

Adding values to a sum between tables

Hello,

I have a dataset that contains two tables that connect to a fact table. Table 1 - Project Information with a One-to-Many relationship, and Table 2 - Project Information with a One-to-One.

 

I am trying to show, for any given project, the total Svgs/Loss amount + that project's ReimbursementLabor  - CosttoCompleteLabor. I thought this would be simple but I seem to be unable to create a measure between the two tables. Is there any other way I should be approaching this or anything I'm missing?

 

Lukaszj_1-1664474340045.png

Any guidance would be greatly appreciated. Thank you!

1 ACCEPTED SOLUTION

That looks like something I would have written. Glad it is working.

The only thing I would tend to do differently is use variables when I have measures with multiple calculations in them. It allows me to easily test the components of a measure to find which parts work and which parts are "broken".





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

7 REPLIES 7
jgeddes
Super User
Super User

With that relationship set up as long as you are not using the ID column from Archive Labor as the visual filter you should be able to get your measures to calculate across tables, but I would have to see the measures being used to understand why they are not working for you.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Would a measure be the best way to calculate this? I'd like to display the final value on a card.

When I try to create the measure, the tblReimbursement columns don't "auto-fill" while typing which is what's leading me to believe theres an issue. Is that inherently indicative of a data issue or might I just have to manually type in all the 'Table'[Column] syntax?

A measure would be the best option for your need here.

I have had some issues with "auto-fill" lately personally. I would type the 'table'[column] and see what the result is rather than assuming auto fill is working. 

If you need a hand writing the measure, let me know which table/columns you are wanting to use and I can assist.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Thanks for the tip! I was able to write the measure below and it seems to give the desired output and works when I filter for different project IDs. Would you have done it a different way?

 

Lukaszj_0-1664551171085.png

 

That looks like something I would have written. Glad it is working.

The only thing I would tend to do differently is use variables when I have measures with multiple calculations in them. It allows me to easily test the components of a measure to find which parts work and which parts are "broken".





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





jgeddes
Super User
Super User

My first suggestion would be to review the cross filter directions of the existing relationships. It sounds like one of the product ID columns is trying to filter a table that it cannot.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Here is a snippet of just the related tables. The only one I can edit is the one-to-many with Archive Labor, but I didn't notice any difference when changing that one between single and both.

Lukaszj_0-1664484452860.png

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.