Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not 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 1
Ashish_Mathur
Super User
Super User

Hi,

This approach should work

  1. Create a third table with a single column of all unique Customer names
  2. Create a relationship (Many to One and Single) from the 2 tables to the table created in 1 above
  3. To your visual, drag Customer name from the newly created third table
  4. Write these measures

T = sum('Table1'[Total])

D = sum('Table2'[Discount])

N = [T]-[D]

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.