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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Madelein
Frequent Visitor

Calculate current month value based on a description from a previous month

I want to calculate a measure with current month values based on a description of last month:

 

dataset2.JPG

The measure I created gives a blank answer:

old stage_1 = calculate(sum(Table[Balances]),filter(Table,Table[Month]=max(Table[Month])),filter(Table,Table[STAGE]="Stage_1" && Table[Month]=min(Table[Month])),ALLSELECTED(Table[Month]))

 

4 REPLIES 4
V-lianl-msft
Community Support
Community Support

Hi @Madelein ,

 

I'm sorry, I'm confused about your expression.

What is the rule of the stage corresponding to balances in the result table?

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

The stage refers to the stage description from the previous period selected (i.e 201907), the balance refers to the current period selected i.e(201910)

amitchandak
Super User
Super User

The information you have provided is not making the problem clear to me. Can you please explain with an example.

Appreciate your Kudos.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Refer to raw data supplied . The total balances of 201910(month selected on a filter) needs to be summed and categorised according to the Stage Descriptions from 201907(month selected on a filter) 

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.