This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hi,
I have three tables say A, B and C.
Relationship Between tables are follows:
Table A has Primarykeys of B and C
B to A - One to Many
C to A - One to Many
Now I want to derive a column in table A (calculated column) based on the combition of some descriptive columns of B and C
For Example: Table A.calculated col =SWITCH(TRUE(),
tableB.title = 'abc' and tablec.code='kon', 'pi'
tableB.title='phg' and tableC.code='poj', 'lm',
' unknown')
Please explain how shall i use related function for the above scenario
Solved! Go to Solution.
If the table relationships are created without problems. You could try the DAX below.
Table A.calculated col = var tableBtitle = RELATED(tableB[title]) var tableCcode = RELATED(tableC[code]) return SWITCH(TRUE(), tableBtitle = "abc" && tableCcode ="kon", "pi", tableBtitle ="phg" && tableCcode ="poj", "lm", "unknown")
Regards,
Charlie Liao
Hi,
I have three tables say A,B and C
The relationship between tables are listed below
Table A-B - Many to One
Table A-C - Many to One
Table A has primary key of B and C as different columns
Now I want to derive a column in table A based on the combination of values of columns of Table B and C
For Eample: Calculated column in table A =SWITCH(TRUE(),
A.title="Bc" && B.code="lo", "pf",
A.title="ko" && B.code="rt", "ju",
A.title="we","pm"
"Unknown"
)
Pleae explain me how to perform the above using related function
Thanks In Advance
If the table relationships are created without problems. You could try the DAX below.
Table A.calculated col = var tableBtitle = RELATED(tableB[title]) var tableCcode = RELATED(tableC[code]) return SWITCH(TRUE(), tableBtitle = "abc" && tableCcode ="kon", "pi", tableBtitle ="phg" && tableCcode ="poj", "lm", "unknown")
Regards,
Charlie Liao
Thankyou i have followed your steps, It helped me.
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 14 | |
| 10 | |
| 9 | |
| 7 | |
| 7 |
| User | Count |
|---|---|
| 33 | |
| 28 | |
| 26 | |
| 19 | |
| 16 |