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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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.


Go to My LinkedIn Page


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.


Go to My LinkedIn Page


Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors