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
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.

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
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.