Forum Discussion
Michel89
8 years agoRegular Visitor
Calculation between two tables
Hello everybody, I'm new to PowerBI and have a question about creating a query / formula that can calculate a value from cells of different tables. I have a table called 'Werkzaamheden' and a t...
- Anonymous8 years ago
I think you are trying to create a MEASURE (meetwaarde), you should create a COLUMN (kolom). Add the column to the [Werkzaamheden] table and not the [Kosten] table. I just tried and it worked :)
Anonymous
8 years agoNot applicable
As jthomso mentioned, If you create a link between the two Functie columns, you can add a calculated column to the Werkzaamheden table:
KostenWerkzaamheden = Werkzaamheden[Duur] * RELATED(Kosten[Kosten])
That one should work :-)
Michel89
8 years agoRegular Visitor
I've tried adding a column to the table 'Werkzaamheden', but got an error:
Expression.Error: The name RELATED hasn't been recognized.
= Table.AddColumn(#"Type gewijzigd", "KostenWerkzaamheden", each Werkzaamheden[Duur] * RELATED(Kosten[Kosten]))
I don't know what I'm doing wrong?