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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
MagikJukas
Resolver III
Resolver III

sum values from another table without relationship

Hello,

I have the following situation:

Table1: 

MaterialQty
SB340800

 

Table2:

ComponentsLvl Above
SB340SB330
SB330 

 

I want to create a measure that shows 800 associated to the components SB330.

 

the two tables do not have reletionship due to additional complexities of the model.

 

regards

 

 

1 ACCEPTED SOLUTION
MagikJukas
Resolver III
Resolver III

Ok, I think I got it:
I broke it up in two measure:

M1=CALCULATE(SUM(table1[Qty]),Table1[Material] IN VALUES(Tabl2[Components]))
M2 =CALCULATE(M1,ALL(Table2),Table2[Lvl Above] IN VALUES(Table1[Components]))

 

View solution in original post

2 REPLIES 2
MagikJukas
Resolver III
Resolver III

Ok, I think I got it:
I broke it up in two measure:

M1=CALCULATE(SUM(table1[Qty]),Table1[Material] IN VALUES(Tabl2[Components]))
M2 =CALCULATE(M1,ALL(Table2),Table2[Lvl Above] IN VALUES(Table1[Components]))

 

olgad
Resident Rockstar
Resident Rockstar

Hi, can you have inactive relationship between the two? Just create the relationship, but it shall be inactive.
Then you can write a formula:
Qty=

CAlculate(Sum('Table1'[Qty]), USERELATIONSHIP('TAble1'[Material],'Table2'[Components]))

DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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