Hi I have two tables as below ; which are input for my report .First Table is Invoice second Table is Messages
key | Language | Region |
---|---|---|
1 | English | USA |
2 | English | USA |
Language | Region | SortOrder | Message |
---|---|---|---|
English | USA | 1 | ABCDEFG IJKLMNOP ... |
English | USA | 2 | QRST UVW |
English | USA | 3 | XYZ |
I want to create three custom Formula Fields(Message1,Message2,Message3) which is by SortOrder column as a condition for a report.
In the end when I look at SQL Query on the report, the query result should look like as below.
Key | Language | Region | Message1 | Message2 | Message3 |
---|---|---|---|---|---|
1 | English | USA | ABCDEFG IJKLMNOP ... | QRST UVW | XYZ |
2 | English | USA | ABCDEFG IJKLMNOP ... | QRST UVW | XYZ |
I tried to create 'Message1' formula field as below and dropped on Report .I ended up getting duplicates.
if({Invoice.Language}='English' and {Invoice.Region}='USA' and {Messages.SortOrder}=1) then {Messages.Message}