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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Tan2912
New Member

Generate months and milestone for a table

I have a following sample table with ProjectID, Milestone name and milestone date. I need generate a new table or modify the existing table which generates with months in between two milestone, and populate milestone names till the next milestone occurs, by ProjectID.

 

Sample:

ProjectIDMilestone NameMilestone Date
M001TROPJan-21
M001EFSJun-21
M001ELSJun-22
M001OLSJan-23
M001LockMar-23
M001RCSAug-23
M002TROPFeb-21
M002EFSApr-21
M002ELSJul-22
M002OLSJan-23
M002LockMar-23
M002RCSSep-23

 

Expected output:

ProjectIDMonthCalMilestone Name
M001Jan-21TROP
M001Feb-21TROP
M001Mar-21TROP
M001Apr-21TROP
M001May-21TROP
M001Jun-21EFS
M001Jul-21EFS
M001Aug-21EFS
M001Sep-21EFS
M001Oct-21EFS
M001Nov-21EFS
M001Dec-21EFS
M001Jan-22EFS
M001Feb-22EFS
M001Mar-22EFS
M001Apr-22EFS
M001May-22EFS
M001Jun-22ELS
M001Jul-22ELS
M001Aug-22ELS
M001Sep-22ELS
M001Oct-22ELS
M001Nov-22ELS
M001Dec-22ELS
M001Jan-23OLS
M001Feb-23OLS
M001Mar-23LOCK
M001Apr-23LOCK
M001May-23LOCK
M001Jun-23LOCK
M001Jul-23LOCK
M001Aug-23RCS
M002Feb-21TROP
M002Mar-21TROP
M002Apr-21EFS
M002May-21EFS
M002Jun-21EFS
M002Jul-21EFS
M002Aug-21EFS
M002Sep-21EFS
M002Oct-21EFS
M002Nov-21EFS
M002Dec-21EFS
M002Jan-22EFS
M002Feb-22EFS
M002Mar-22EFS
M002Apr-22EFS
M002May-22EFS
M002Jun-22EFS
M002Jul-22ELS
M002Aug-22ELS
M002Sep-22ELS
M002Oct-22ELS
M002Nov-22ELS
M002Dec-22ELS
M002Jan-23OLS
M002Feb-23OLS
M002Mar-23LOCK
M002Apr-23LOCK
M002May-23LOCK
M002Jun-23LOCK
M002Jul-23LOCK
M002Aug-23LOCK
M002Sep-23RCS
0 REPLIES 0

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.