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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
ww1711
Frequent Visitor

Data Summarization by Month

I have a list of projects that go through 5 stages in their lifetime: Requirements (Req), Development (Dev), UAT, Implement, & Warranty.

I have dates associated with each of the stages that represent when each stage is complete.

I'm trying to report on the status of each project at the end of each month based on which stage is/was completed that month. So, if a given project's requirements are completed in January and development completes some time in March, I'd expect the output of my report to tell me that the project's statuses for January, February, and March are "Req Complete", "Req Complete", and "Dev Complete" respectively.

 

This is what the source data looks like:

sourcedata.PNG

 

This is what the output might look like:

results.PNG

 

Note, that if multiple stages complete in one month, we're only interested in displaying the most recently completed stage; Project A completed both Requirements AND Development in January, but the resulting report shows only "Dev" as the stage completed in January.

 

Thanks in advance!

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

 

You may refer to my solution here - Show Project wise status in a Pivot Table.

 

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

6 REPLIES 6
Ashish_Mathur
Super User
Super User

Hi,

 

You may refer to my solution here - Show Project wise status in a Pivot Table.

 

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thank you for your help, Ashish. Using your Power Query steps, I was able to transform my data and shape it according to the requirement.

Thanks again!

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Greg_Deckler
Community Champion
Community Champion

Hmm, in reading this again, perhaps something brute force like:

 

Measure = 
VAR __year = YEAR(MAX(Calendar[Date]))
VAR __month = MONTH(MAX(Calendar[Date]))
VAR __reqYear = YEAR(MAX(Projects[Req_FinishDate]))
VAR __reqMonth = MONTH(MAX(Projects[Req_FinishDate]))
VAR __devYear = YEAR(MAX(Projects[Dev_FinishDate]))
VAR __devMonth = MONTH(MAX(Projects[Dev_FinishDate]))
VAR __uatYear = YEAR(MAX(Projects[UAT_FinishDate]))
VAR __uatMonth = MONTH(MAX(Projects[UAT_FinishDate]))
VAR __impYear = YEAR(MAX(Projects[Implement_FinishDate]))
VAR __impMonth = MONTH(MAX(Projects[Implement_FinishDate]))
VAR __warYear = YEAR(MAX(Projects[Warranty_FinishDate]))
VAR __warMonth = MONTH(MAX(Projects[Warranty_FinishDate]))
VAR __state = SWITCH(TRUE(),
  __year = __warYear && __month = __warMonth,"Warranty"
  __year = impYear && __month = __impMonth,"Implementation"
...
RETURN
__state

Something along those lines. Also, wondering if unpivoting your date columns might provide a better solution.



Follow on LinkedIn
@ 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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Thanks, Greg. This solution almost got me over the hurdle. Thanks for the time. I'll be saving the links in your prior answer for future reference.
Greg_Deckler
Community Champion
Community Champion


I don't think they are a perfect fit for this, but take a look at these two Quick Measures as I think you want something like them or at least they might give you an idea or two:

https://community.powerbi.com/t5/Quick-Measures-Gallery/Open-Tickets/m-p/409364
https://community.powerbi.com/t5/Quick-Measures-Gallery/Periodic-Billing/m-p/409365



Follow on LinkedIn
@ 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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.