Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Not applicable

How to subtract 2 columns in different tables based on a name and date?

I have 2 tables with a 1:many relationship.  I have 1 table that has account name, units sold, and the year and month.  I have another table with multiple months that has the budget data and I want to subtract them based on year and month and the account name. I want the formula to work form the duplicate accounts so I can see accounts that have been budgeted for but have no sales.  Any help with this?  Thanks!

Account NameYearMonthBudgetSalesDifference between Budget & Sales

t work right.  Ideally I want 

Super User
Super User

Please provide sample data that covers your issue or question completely.
Please show the expected outcome based on the sample data you provided.

Helpful resources

PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors