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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
romovaro
Responsive Resident
Responsive Resident

Cumulative timeline using average days from differents phases

Hello

 

I have a question regarding creating a cumulative timeline.

I have a table with different phases and dates

 

romovaro_0-1717146979245.png

 

I can create graphs using datediff to see the average of Days between phases.

 

romovaro_1-1717147069294.png

 

I have been asked to create a cumulative timeline or at, least a cumulative graph to see overall the time to engage by segment and identify the steps where we spend more time. I am looking for a sort of cumulative timeline that shows the # of days for each step in the process.  

 

I have checked different ways in the forum but this time there are multiple dates and formulas are not really working.

ANy help is welcome, thanks.

 

 

 

1 ACCEPTED SOLUTION

PBI.pbix 

No need to create relationship between tables.

Power BI file attached, In case you're not able to open this workbook, you need to use latest version of Power BI desktop to use this workbook.

 

Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.

View solution in original post

6 REPLIES 6
fahadqadir3
Super User
Super User

@romovaro In this Case You first need to Unpivot Your Date Columns, Please review the following screenshot and attached pbix file.
unpivot columns.png

You want to present total (cummulative) days for each segment or by each Index in my case or whatever dimension you have.Charts.png

 

Power BI File attached

sad.pbix

SalesHandOverDate = 
CALCULATE(
    SUM('Updated Table'[Date]),
    FILTER('Updated Table', 'Updated Table'[Attribute] = "SalesHandOverDate")
)


1st Engagement Call Date = CALCULATE(
    SUM('Updated Table'[Date]),
    FILTER('Updated Table', 'Updated Table'[Attribute] = "1st Engagement Call Date")
)

SalesHandOvertoFirstEngange = DATEDIFF([SalesHandOverDate],[1st Engagement Call Date],DAY)

Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.

Thanks fahadqadir3,

 

I have problems seeign your dasboard. I cannot see anything.

 

I want to show the average by days x phase so I can provide timelines graphs like the one below:

The idea is to:

 

SUM (Av signature vs Greenlight) + SUM (Av GreenL vs Sales handover)........ it shows a trend of total days by phase.

romovaro_0-1717159696222.png

 

 

 

 

x

 

 

 

@romovaro  You first need to create a new table like this:

Table.png

Then create  a following measure

Cummulative Line = SWITCH(MAX('COLUMNS'[NAME]),
"Sign vs GL",[AVG Signature vs GL],
"GL vs Sales HO",[AVG Green Light vs Sales HO]+[AVG Signature vs GL],
"Sales HO vs 1stEngangeCall",
[AVG Green Light vs Sales HO]+[AVG Signature vs GL]+[AVG SalesHO vs 1st Engangement Call])


Cummulat.png

 

Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.

HI fahadqadir3 

 

That's what I need.

Created a table and also the measure like you said.

 

romovaro_0-1717423749366.png

 

but my table comes blank.

 

Did you use diff Phase formula? Tables need to be connected?

Can you share pbix just in case?

Phase1_Days - Contract2Green =
CALCULATE(
    AVERAGEX(
        FY24,
        DATEDIFF(FY24[Contrat Signature date], FY24[Greenlight Date], DAY)
    ),
    FY24[Contrat Signature date] >= DATE(2023, 7, 1) && FY24[Contrat Signature date] < DATE(2024, 6, 30)
)

 

Thanks

PBI.pbix 

No need to create relationship between tables.

Power BI file attached, In case you're not able to open this workbook, you need to use latest version of Power BI desktop to use this workbook.

 

Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.

romovaro
Responsive Resident
Responsive Resident

HI
 
I have formulas for every phase as below:
 
Phase1_Days - Contract2Green =
CALCULATE(
    AVERAGEX(
        FY24,
        DATEDIFF(FY24[Contrat Signature date], FY24[Greenlight Date], DAY)
    ),
    FY24[Contrat Signature date] >= DATE(2023, 7, 1) && FY24[Contrat Signature date] < DATE(2024, 6, 30)
)

 

Phase2_Days - Green2Sales =
CALCULATE(
    AVERAGEX(
        FY24,
        DATEDIFF(FY24[Greenlight Date], FY24[Sales Handover date], DAY)
    ),
    FY24[Greenlight Date] >= DATE(2023, 7, 1) && FY24[Greenlight Date] < DATE(2024, 6, 30)
)
 
Phase3_Days - Sales21stCall =
CALCULATE(
    AVERAGEX(
        FY24,
        DATEDIFF(FY24[Sales Handover date], FY24[1st Engagement Call Date], DAY)
    ),
    FY24[Sales Handover date] >= DATE(2023, 7, 1) && FY24[Sales Handover date] < DATE(2024, 6, 30)
)
 
... etc until last phase:
 
Phase6_Days - PMAllocation2Handover =
CALCULATE(
    AVERAGEX(
        FY24,
        DATEDIFF(FY24[PM Allocation Date], FY24[Handover to PM Date], DAY)
    ),
    FY24[PM Allocation Date] >= DATE(2023, 7, 1) && FY24[PM Allocation Date] < DATE(2024, 6, 30)
)
 
 then trying to create a cumulative line whit the formula below but no t really showing what I need. (see Excel screenshot previous post). 
 
Phases_Cumulative =
CALCULATE(
    [Phase1_Days - Contract2Green] + [Phase2_Days - Green2Sales] + [Phase3_Days - Sales21stCall] + [Phase4_Days - 1stCall2ReadyPMAllocation] + [Phase5_Days - 1stCall2ReadyPMAllocation] + [Phase6_Days - PMAllocation2Handover],
    FILTER(
        ALLSELECTED(FY24[Contrat Signature date]),
        FY24[Contrat Signature date] <= MAX(FY24[Contrat Signature date])
))
 
thanks
 

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

Find out what's new and trending in the Fabric Community.