Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi am very new to PowerBi, so excuse the basic question
I have 2 Tables
Key is PN Column
Table 1
PN New Column
1234
2222
3333
Table 2
PN Location QTY Available
1234 BNE 6
1234 CDC 8
2222 BNE 50
2222 LAX 9
2222 SYD 2
3333 BNE 3
3333 CDC 4
3333 LAX 7
3333 SYD 1
Expected Result
Table 1
PN New Column
1234 8
2222 0
3333 4
Solved! Go to Solution.
Hi,
I assume there is a relationship between the two tables like below.
Please check the below picture and the attached pbix file.
RELATEDTABLE function (DAX) - DAX | Microsoft Learn
Expected result Calculated Column =
SUMX (
FILTER ( RELATEDTABLE ( 'Table 2' ), 'Table 2'[Location] = "CDC" ),
'Table 2'[QTY Available]
) + 0
Thanks Jihwan, this was perfect
Hi,
I assume there is a relationship between the two tables like below.
Please check the below picture and the attached pbix file.
RELATEDTABLE function (DAX) - DAX | Microsoft Learn
Expected result Calculated Column =
SUMX (
FILTER ( RELATEDTABLE ( 'Table 2' ), 'Table 2'[Location] = "CDC" ),
'Table 2'[QTY Available]
) + 0
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 38 | |
| 36 | |
| 30 | |
| 28 |
| User | Count |
|---|---|
| 129 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |