• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Gantt table where Milestones from another tab are in one row

janboo

New Member
Hi,
First, thank you in advance for your help! Will be so grateful if you can help!

I have a list of Types (~ over 500 lines) broken down by environment and release dates.
A type will never have the same release date per environment. The values are listed in Tab1.
Migration TeamMigration PartnerTypeEnvironmentRelease Date
ATechApple (AIID201819) Dev10-17-22
ADevBanana (AIID204379) Dev11-30-22
BDevApple (AIID201819) QA11-17-22
ATechApple (AIID201819) UAT11-30-22
ADevOrange (AIID222222)Test
12-01-22
ADevApple (AIID201819) PreProd12-15-22
BDevApple (AIID201819) Stage12-30-22
ADevBanana (AIID204379) Prod12-30-22

I want to create a gantt chart where a Type will have the environments across a single line, under the year/month/week the release is scheduled. Tab2.

TimelineOct-22Nov-22Dec-22
Week10-03-22
10-10-22​
10-17-22​
10-24-22​
10-31-22​
11-07-22
11-14-22​
11-21-22​
11-28-22​
12-05-22​
12-12-22
12-19-22​
12-26-22​
01-02-23​
01-09-23​
01-16-23
Apple (AIID201819) DevQAUATPreProdStage
Banana (AIID204379) DevProd
Orange (AIID222222)Test

Is there an easier way than having a string of formulas? Macro please? Anything?

Thanks again for your help!!

Jan
 

Attachments

  • Gantt picking up milestones and entering all in one line.xlsx
    13.5 KB · Views: 2
A power query solution

Code:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Release", type date}}),
    #"Grouped Rows" = Table.Group(#"Changed Type", {"Type"}, {{"Data", each _, type table [Migration Team=text, Migration Partner=text, Type=text, Environment=text, Release=nullable date]}}),
    #"Expanded Data" = Table.ExpandTableColumn(#"Grouped Rows", "Data", {"Environment", "Release"}, {"Data.Environment", "Data.Release"}),
    #"Pivoted Column" = Table.Pivot(Table.TransformColumnTypes(#"Expanded Data", {{"Data.Release", type text}}, "en-US"), List.Distinct(Table.TransformColumnTypes(#"Expanded Data", {{"Data.Release", type text}}, "en-US")[Data.Release]), "Data.Release", "Data.Environment")
in
    #"Pivoted Column"
 

Attachments

  • Gantt picking up milestones and entering all in one line.xlsx
    22.9 KB · Views: 10
Hi AlanSidman,
I didn't notice until now, is it possible to have the dates in order in tab2 please?


Thanks,
Jan
 
I missed that also.

Code:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Release", type date}}),
    #"Grouped Rows" = Table.Group(#"Changed Type", {"Type"}, {{"Data", each _, type table [Migration Team=text, Migration Partner=text, Type=text, Environment=text, Release=nullable date]}}),
    #"Expanded Data" = Table.ExpandTableColumn(#"Grouped Rows", "Data", {"Environment", "Release"}, {"Data.Environment", "Data.Release"}),
    #"Sorted Rows" = Table.Sort(#"Expanded Data",{{"Data.Release", Order.Ascending}}),
    #"Pivoted Column" = Table.Pivot(Table.TransformColumnTypes(#"Sorted Rows", {{"Data.Release", type text}}, "en-US"), List.Distinct(Table.TransformColumnTypes(#"Sorted Rows", {{"Data.Release", type text}}, "en-US")[Data.Release]), "Data.Release", "Data.Environment")
in
    #"Pivoted Column"
 
Last edited:
I missed that also.

Code:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Release", type date}}),
    #"Grouped Rows" = Table.Group(#"Changed Type", {"Type"}, {{"Data", each _, type table [Migration Team=text, Migration Partner=text, Type=text, Environment=text, Release=nullable date]}}),
    #"Expanded Data" = Table.ExpandTableColumn(#"Grouped Rows", "Data", {"Environment", "Release"}, {"Data.Environment", "Data.Release"}),
    #"Sorted Rows" = Table.Sort(#"Expanded Data",{{"Data.Release", Order.Ascending}}),
    #"Pivoted Column" = Table.Pivot(Table.TransformColumnTypes(#"Sorted Rows", {{"Data.Release", type text}}, "en-US"), List.Distinct(Table.TransformColumnTypes(#"Sorted Rows", {{"Data.Release", type text}}, "en-US")[Data.Release]), "Data.Release", "Data.Environment")
in
    #"Pivoted Column"
Thank you sincerely Alan!!!
 
Back
Top