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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Enter additional date row to column

Hello, 

 

I have a dataset with start date, date of update and end dates that I am trying to put into a gantt chart or some other time visualisation to see the journey of the incidents. 

 

The problem is, I can only use two date fields in the gantt chart (start date and end date) but I would like to visualise the whole journey (including all updates). 

 

I created an additional column with previous incident update, which starts with the incident start date and then looks at the previous update date, which I was using to calculate time between updates. 

 

I can use this column as the start date and the date of update as the end date to sequence the start of the incident up until the most recent update, but it unfortunately leaves off the date of closure.

 

Do you have any idea how best to combine this so i can have one visual which looks at the start date, each update and then closure?

 

The visual I am trying to show is a timeline of all of these steps (for each incident), colour coded by categories. 

 

Any help would be much appreciated!

 

Thanks 

 

 

1 ACCEPTED SOLUTION
mahoneypat
Employee
Employee

Please see if this timeline visual better meets your needs.

 

https://www.youtube.com/watch?v=yNqcUcrMigY&feature=emb_logo

 

Regards,

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

3 REPLIES 3
mahoneypat
Employee
Employee

Please see if this timeline visual better meets your needs.

 

https://www.youtube.com/watch?v=yNqcUcrMigY&feature=emb_logo

 

Regards,

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


v-alq-msft
Community Support
Community Support

Hi, @Anonymous 

 

A Gantt chart can be generalized as a type of bar chart, where each bar represents a section of data on a time axis. The key elements portrayed on this chart generally are tasks, resources, duration, progress, time-axis, completion and inter-dependencies. You may adjust your data to fit the visual.

 

For further information, you may refer to the folllowing article.

Schedule analysis using Gantt chart in Power BI Desktop 

 

Best Regards

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Thanks very much for your reply. I am trying to use a Gantt chart. The issue I have is more with the structure of the data. 

 

I am trying to represent all steps along the journey in one incident. So if we take the example below. Incident ID Start Date and closed date are all in one table, then, addended to these tables are multiple updates. 

 

So for incident A, it started on 01/01/2019, there were three updates, and then it was closed on the 01/04/2019. 

 

Incident IDStart DateIncident Update IDIncident Update Dateincident Closed Date
A01/01/20191202/01/201901/04/2019
A01/01/20191315/01/201901/04/2019
A01/01/20191423/03/201901/04/2019
B02/01/20192213/03/201920/03/2019
B02/01/20192315/03/201920/03/2019

 

I used the following formula to create an additional column that demotes the incident date and also includes the start date in one column. 

 

Incident Start Date = if(ISBLANK(CALCULATE(MAX(Safeguarding[Date of update]),ALLEXCEPT(Safeguarding,Safeguarding[Incident Record ID]),Safeguarding[Date of update]<EARLIER(Safeguarding[Date of update]))),Safeguarding[Date of incident or safeguarding concern],(CALCULATE(MAX(Safeguarding[Date of update]),ALLEXCEPT(Safeguarding,Safeguarding[Incident Record ID]),Safeguarding[Date of update]<EARLIER(Safeguarding[Date of update]))))
 
Incident IDStart DateIncident Update IDIncident Update Dateincident Closed Date"Incident Start Date"
A01/01/20191202/01/201901/04/201901/01/2019
A01/01/20191315/01/201901/04/201902/01/2019
A01/01/20191423/03/201901/04/201915/01/2019
B02/01/20192213/03/201920/03/2019 
B02/01/20192315/03/201920/03/2019 

 

This allows me to use the new Incident Start Date, combines with Incident update to model the journey from start date to most recent update. However, I can't include the final step (from last update to closure) as there are only two fields available for incident dates in Gantt chart visuals. 

 

I wondered whether, also, the data could be structured bettwe in import. Perhaps it would be more helpful to have seperate tables for incident record ID and the addended incident update records? Or whether there was a clever way to do this without starting again?

 

Hopefully this is making sense?

 

Thanks  

 

Dax

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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