Forum Discussion

azaterol's avatar
azaterol
Icon for Helper V rankHelper V
2 years ago
Solved

Add amount from other table to calculated column - Need Help in DAX

Hello everyone,   I have given two tables. Invoice table and an order table. These two tables are linked to each other via the invoice number. There is therefore a 1:n relationship.   I wo...
  • Ashish_Mathur's avatar
    2 years ago

    Hi,

    Create a single column table with all unique DocNr (Table name is Docs).  Create a relationship (Many to One and Single) from the 2 tables to the Docs table.  To your visual, drag DocNr from the Docs table.  Write this measure

    Total = sum(invoice[Invoice X]) + sum(Order[calculated column])

    Hope this helps.