Forum Discussion
bring field from 3rd table
- 4 years ago
I have used a similar structure to the one you have given. Can you see if the calculate table sample I provided in my earlier message helps?
thank you guys, Meanwhile, i've upload the imagem with the relatioships.
daxeralmighty, you're right, but my sources are in excel files, and thats how they arrive to me..
I've the OBJ_ID that are in the invoices table.
than i've to match in payments table, those who are in the invoices.
and i want to bring, for each row (that exists in invoices and payments table) the 2 Tax (A and B) with the corresponding values.
thanks for the help,
JP
Seeing you have a 1:* relationship between the payments and tax table, you can keep that relationship. Just create a Dimension table for Obj_ID and link to Payments and Invoices in a 1:* relationship between the dimension table and payments and invoices table. Then just create the visual using the fields from the Dimension Obj_ID and/or the date table. You can then add fields from the invoices, payments and tax tables in you visuals
you can create the Obj-ID dimension table using the following DAX in a new table:
Dim Obj_ID =
VAR Inv = VALUES ( Invoices[Obj-ID])
Var Paym = VALUES (Payments[Obj_Id])
RETURN
DISTINCT(UNION(Inv, Paym))