Forum Discussion
Concatenating columns from different tables
- 2 years ago
Hi jostnachs - as per above relationships shared,
Policy table is related to the Agreement table so you can bring the required column to agreeement table. using related
Agreement table is related to the Structure table.--> bring the strucutred colum nto agreement table.create a new column in agreement table as below:
ConcatenatedColumn =
VAR PolicyNumber = RELATED(Policy[PolicyNumber])
VAR StructureName = RELATED(Structure[StructureName])
VAR AgreementType = Agreement[AgreementType]RETURN
IF(
AgreementType = "Active", // your condition add it
PolicyNumber & " |" & StructureName,
BLANK()
)Hope it works
tried it with the policy table alone but giving me the same relationship error.
its a m:n relation between policy and agreement, maybe there are records in the agreement-table without corresponding records in policy. you can try to make a table visual with the columns you want to have.
The RELATED function requires that a relationship exists between the current table and the table with related information. You specify the column that contains the data that you want, and the function follows an existing many-to-one relationship to fetch the value from the specified column in the related table. If a relationship does not exist, you must create a relationship.