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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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