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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
hitb
New Member

Adding tables from multiple fact tables

I have the following tables:

1. Dim_Item

2. Fact_PO

3. Fact_Inventory

 

I need to have a cross tab table that has the ItemID column from Dim_Item and Total column that is basically adding Fact_PO[quantity] + Fact_Inventory[quantity]. I dont want to create a measure because I need this at line item level which is the ItemID level. I cant seem to find good answers for this. 

Thanks!

3 REPLIES 3
tamerj1
Super User
Super User

Hi @hitb 

whats the problem with having a measure at the item ID level? SUM ( Fact_PO[quantity] ) + SUM ( Fact_Inventory[quantity] ) should work just fine. Otherwise, a calculated column in the 'Dim_Item' table would be 

SUMX ( RELATEDTABLE ( Fact_PO ), Fact_PO[quantity] ) + SUMX ( RELATEDTABLE ( Fact_Inventory ), Fact_Inventory[quantity] )

The first one worked. The second one gave me:

Too many arguments were passed to the RELATEDTABLE function. The maximum argument count for the function is 1.

Hi @hitb 
Please share a screenshot of your code. Perhaps you missed one closing bracket.

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.