cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Previous Month Value

Hello Experts!

 

For the simple calculation I'm trying to achieve there should not be any major issue, however, I keep trying in so many different ways suggested online and still finding no success here. Hopefully an expert here will help me get to a solution:

 

I simply want to make a PREVOUSMONTH operation!

 

On the file below there is a list of projects that achieve a % Complete every month. The extra column that I added called % Progress is the difference between the % Complete of the current month and the % Complete of the previous month. I achieve this in Excel using VLOOKUP very easily (there are over 400 projects reporting progress every month).

 

% Progress Table.jpg

 

Ultimately I want to create a matrix as per the second below

 

% Progress.jpg

 

But I am just ok if I can replicate the % Complete of the previous month on a separate column (% Complete Prev), then I would simply subtract % Complete - % Complete Prev

 

In Power Bi I have got as far as the measure below but receiving no values back:

% Complete Prev = CALCULATE(MAX(Sheet1[% Complete]),PREVIOUSMONTH('Sheet1'[Date]))

 

Any ideas will be hugely appreciated!

 

Best,

 

     Ricardo

 

1 REPLY 1
Greg_Deckler
Super User IV
Super User IV

See if my Time Intelligence the Hard Way provides a different way of accomplishing what you are going for.

https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TIT...


---------------------------------------

@ me in replies or I'll lose your thread!!!

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Get Ready for Power BI Dev Camp

Microsoft named a Leader in The Forrester Wave

Microsoft received the highest score of any vendor in both the strategy and current offering categories.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Top Kudoed Authors