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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
jja
Helper III
Helper III

perform calcualtion with indirect relationship table data

Hi. I have this schema:

 

What i want to do is to sum the weight and qty of the components by employee and different status in trasnaction table pand i don't underdtand how i could reach the weight column with this schema:

 

jja_2-1649402449478.png

 

 

my result should look like table in this look:

Employee,status,total weight,total qty

Can you help please?

1 REPLY 1
johnt75
Super User
Super User

You could create measures like

Total qty = SUM( Transactions[qty])

Total weight = SUMX( Transactions,
var currentProject = Transactions[projectsid]
var currentComponent = Transactions[componentname]
return LOOKUPVALUE( Components[weight], Components[projectsid], currentProject, Components[componentname], currentComponent )
)

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.