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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
mbrawn
Frequent Visitor

Cross-Table Calculation

Hi there,

 

I am after some help with an issue I have performing a simple calculation across 2 tables. I have the following relationship set up between these 2 tables:

 

Capture.PNG

 

This is allowing me to do everything I need to except one thing. I need a column created in the PowerBI_Cache_Projects table which is the SUM of (PowerBI_Cache_Timelogs(2)[HOURSSPENT]) * 105.

 

I have tried using the RELATED function as this seems to come up a lot in these posts, but that only works from the Timelogs table to Projects, not the other way around. Intellisense does not pick up the Timelogs table when querying from Projects.

 

Anyone any ideas?

 

Thanks

1 ACCEPTED SOLUTION
Vvelarde
Community Champion
Community Champion

@mbrawn

 

Hi, are you already try with:

 

New calculated column:

 

TotalHoursSpent = CALCULATE(sum(Table2[HourSpent]))*105

 

Regards

 

Victor

Lima - Peru

 

 




Lima - Peru

View solution in original post

3 REPLIES 3
Vvelarde
Community Champion
Community Champion

@mbrawn

 

Hi, are you already try with:

 

New calculated column:

 

TotalHoursSpent = CALCULATE(sum(Table2[HourSpent]))*105

 

Regards

 

Victor

Lima - Peru

 

 




Lima - Peru

@Vvelarde

 

You hero! Thank you, that has given me exactly what I need.

 

Thank you.

Abduvali
Skilled Sharer
Skilled Sharer

@mbrawn

 

Try Merge function it might work for you: Merge Queries in Power BI you can get values over and then sum them.

 

 

Regards

Abduvali

 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.