PowerPivot return value of last date for each Unique value

Llew123

New Member
Joined
Oct 20, 2014
Messages
7
Good day everyone,
So I've been struggling with this calculation in PowerPivot, where I want the formula to return the last project status for each project, from the last date. I have used a few formulas to at least get the last date for each project number, but have not managed to get that right either. I've tried variants of LASTNONBLANK, MAX, LASTDATE etc. but these all miss the crucial bit where it does it for each project number.
=CALCULATE(MAX(GetTimeSheetData[Date]),ALL(GetTimeSheetData)) =LASTNONBLANK(GetTimeSheetData[Date],GetTimeSheetData
Code:
)[/FONT]
[FONT=Helvetica Neue].....and many others.[/FONT]
[FONT=Helvetica Neue]I have the file on the link below that shows what I need to do, any help will be most welcome......I'm busy going crazy!![/FONT]
[FONT=Helvetica Neue][URL]https://drive.google.com/file/d/0B29yA0i2Te9ycFVSclBuZUVzSUU/view?usp=sharing[/URL][/FONT]
[FONT=Helvetica Neue]Thanks!![/FONT]
[FONT=Helvetica Neue]Llewellyn[/FONT]
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
DAX will definitely drive you crazy unless you follow good practice. Do you have a calendar table? If not, you should do that first. Then set up a project manager lookup table and a code lookup table. You should set your tables up like I describe here The Optimal Shape for Power Pivot Data -

give your our tankes short meaningful names - this will make the DAX easier to read.

Then in the next question is how are you expecting to see the results of your measures? Set up a pivot table that is laid out they way you want to see the data, then post back.
 
Upvote 0

Forum statistics

Threads
1,224,118
Messages
6,176,484
Members
452,730
Latest member
palsmith

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top