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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
pipechaves
Frequent Visitor

Need Help - Relationships and Results

Hi members, I need some advice. As today I got a really strange issues from a fellow.

He got 3 tables.

One contains the Project Name, Total Hours and other fields. I will just mention the important ones.

Another one is the Rate and PMO Location

and the last one will be the Project: Which contains PMO Location, Project Name and others.

 

What he is trying and I couldnt succed was to create a new column ON PROJECT that its formula will be   Rate*Hours

Rate is on the Rate table and Hours in the Time table.

I wasnt able to do so.

Any help will be appreciated.

 

Table data below

 

Tabe: Time

Hours# of PMOResourcesPeriodProject
3005September 2017Apollo
421October 2017Apollo
31November 2017Apollo
281December 2017Apollo
331January 2018Apollo
913February 2018Apollo
683March 2018Apollo
642April 2018Apollo
221May 2018Apollo
723January 2018Aries
542February 2018Aries
632March 2018Aries
612April 2018Aries
381May 2018Aries
532February 2018Gemini
291March 2018Gemini
151April 2018Gemini
1004May 2018Gemini
2003August 2017Leo
501September 2017Leo
832October 2017Leo
191November 2017Leo
572December 2017Leo
851August 2017Orion
751September 2017Orion
191April 2018Pegasus
603May 2018Pegasus
482May 2018Taurus
1002June 2017Titan

 

Tabe: Rate

PMO LocationRate
APAC80
EMEA90
LATAM100
NA110

 

Tabe: Project

 

Project NameProject ManagerProject Start DateProject Finish DatePMO Location
ApolloBob9/13/2017 APAC
AriesBob1/4/2018 EMEA
GeminiTim2/18/2018 EMEA
LeoSally8/28/201712/30/2017LATAM
OrionTina8/15/20179/30/2017LATAM
PegasusSally4/4/2018 NA
TaurusAngie5/1/2018 NA
TitanTina6/1/20176/30/2017APAC

 

It seems the relationships created where good and so on. Any help/explanation will be of great help.

 

Thank you all

1 REPLY 1
dedelman_clng
Community Champion
Community Champion

This should work for you:

 

Cost =
SUMX ( RELATEDTABLE ( 'Time' ), 'Time'[Hours] ) * RELATED ( Rate[Rate] )

 

Hope this helps

David

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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