Forum Discussion
Project Month Number
Just trying to work out the best way to add a project month number for reporting.
Currently, i have 4 projects in my accounting file.
They all have different project start and end dates.
For example one project is 140 months duration, commencing on October 2013 (project Month= zero) and finishing on June 2025 (Project Month = 140), another starts in June 2014 and finishes June 2024 etc.
What is the best method to create this information so i can show the current project month number. For example based on a start date of Oct 2013 and end date of June 2025 the current project month number would be 40 which represents February 2017.
Should i create a table of data with start and end project months or a new parameter key for each project. And then how do I link this to the DATEDIM table?
I would like the method to work so when i choose the current reporting month (may need this as a new parameter) it will display the current project month numer. Choosing the current month based on todays date wont work as normally we are reporting historical results in the current period. For example, December 2016 figures are finalised now and we are reporting December figures (month 38) in February 2017.
Thanks again for any advice.
7 Replies
- Phil_SeamarkMicrosoft Employee
A measure like this might work :
Current Project Month = DATEDIFF( MIN(Projects[Start Date]), NOW(), MONTH )
This measure is based on a simple table as below called [Projects]. The measure will always show the current month number based on the startdate of the project.
- THEG72Helper V
How does the measure know what the current reporting month is? For example, I am reporting on December 2016 figures in the actual month of February 2017?
Do i need a parameter called Current Reporting period so the system can obtained the current project month?
- Phil_SeamarkMicrosoft Employee
Oh ok, I think I know what you mean. The example I gave you is simple and assumes you are only looking at it from now.
Will sort that for you in a tick