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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

How to subtract previous month with category from two tables

Hi, 

 

I would like to ask this.

 

So, Currently I have these two tables

BrandMonthRevenue
A11000
1200
C1500
D1700
A22000
2400
C2550
D2600

 

and 

 

BrandBrand Category
AMilk
Milk
CChocolate
DChocolate

 

So the result that I want should look like this

GDENITA_0-1632754255185.png

So what I want to ask is how to get the difference revenue from current month and previous month from the two tables that I have.
Example for Milk the difference is 2400 (revenue in 2nd month) - 1200 (revenue previous month) = 1200

Thank you

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

please check the below picture and the sample pbix file's link down below.

All measures are in the sample pbix file.

 

Picture1.png

 

sample pbix file LINK 

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@Jihwan_Kim Thank you so much it helps!

Jihwan_Kim
Super User
Super User

Hi,

please check the below picture and the sample pbix file's link down below.

All measures are in the sample pbix file.

 

Picture1.png

 

sample pbix file LINK 

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.