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

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
Super User

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!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.