Forum Discussion
nayanpatel
1 year agoNew Member
Data from table using relationship are not populated
Hi Friends, I have 3 tables related as Table1-->Table2-->Table3. Now, I need column from Table1 into Table3 (No Joins or merging). I need in front end. I Tried with Related and lookupvalue, but its ...
rohit1991
1 year agoSuper User
Hi nayanpatel ,
When you have tables linked like Table1 → Table2 → Table3 and you need to pull data from Table3 into Table1 without merging, RELATED and LOOKUPVALUE won’t work if there’s no direct relationship. Instead, you can use the TREATAS function in a measure to “virtually” bridge across those tables.
Here’s a pattern you can use:
ValueFromTable3 =
CALCULATE(
MAX(Table3[YourColumn]),
TREATAS(Table1[LinkingColumn], Table2[LinkingColumn]),
TREATAS(Table2[LinkingColumn], Table3[LinkingColumn])
)
Replace [YourColumn] and [LinkingColumn] with your actual columns. Use this as a measure (not a calculated column) in your report visuals. Make sure your linking columns are of the same data type and contain matching values for context to flow. TREATAS is a great way to get values across indirect relationships, no merge needed. If you need more help, feel free to share a sample structure (with dummy data).