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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
joshua1990
Post Prodigy
Post Prodigy

CALCULATED COLUMN on not direct related table

Hi all!

 

Let's say I have 3 tables  that are linked to each other 1:n

table 1 > table 2 > table 3

 

table 1

Deparment Group (Key to table 2)
AA A
BB B

 

table 2

Group Order (Key to table 3)
A 1
A 2

 

table 3

Order Value
1 500
2 600
3 700

 

Now I would like to calculate the sum from table 3 and add it to table 1.

 

Deparment Group Value
AA A 1100
BB B  

 

 

How would you do that?

1 ACCEPTED SOLUTION
Migasuke
Memorable Member
Memorable Member

Hi @joshua1990 ,

I think the procedure is quite easy. Please check my solution below:

Migasuke_2-1675597827909.png
Hope it helps!

 

 



If my answer was helpful please give me a Kudos or even accept as a Solution.

Let's connect on LinkedIn!

View solution in original post

7 REPLIES 7
Migasuke
Memorable Member
Memorable Member

Hi @joshua1990 ,

I think the procedure is quite easy. Please check my solution below:

Migasuke_2-1675597827909.png
Hope it helps!

 

 



If my answer was helpful please give me a Kudos or even accept as a Solution.

Let's connect on LinkedIn!

THanks a lot @Migasuke. It's perfect. If I need a filter in Table 3, how would you add this into the function?

Something like CALCULATE(SUM(Table 3[Value]), RELATEDTABLE(Table 3), Table 3[Value] >=500))?

Honestly not sure what filter you need.

 



If my answer was helpful please give me a Kudos or even accept as a Solution.

Let's connect on LinkedIn!

CNENFRNL
Community Champion
Community Champion

Obviously, you make wrong relationship between table2 and table3.


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

why?

FreemanZ
Super User
Super User

hi @joshua1990 

you can plot a table visual with Table1[department] and a measure like:

measure = SUM(Table3[Value])

As mentioned, it is about a calculated column 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.