Forum Discussion
Anonymous
2 years agoNot applicable
Calculated column
Hi,
I want to calculate the amount paid by the customer after discount , I want to use two columns from two different tables, the other table has the discount and the other has the total. How do I go about doing that?
Thank you
1 Reply
- Ashish_MathurSuper User
Hi,
This approach should work
- Create a third table with a single column of all unique Customer names
- Create a relationship (Many to One and Single) from the 2 tables to the table created in 1 above
- To your visual, drag Customer name from the newly created third table
- Write these measures
T = sum('Table1'[Total])
D = sum('Table2'[Discount])
N = [T]-[D]
Hope this helps.