cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jberuh Occasional Visitor
Occasional Visitor

Gantt Chart - Duration

I connected data from a SharePoint List to PowerBi. I have all the data that I need except for the "Duration." - I do however have an "End Date." 

 

Is there a way around it or some way to make PowerBi calculate the "Duration" from the "Start" and End Date"?

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Gantt Chart - Duration

Hi @jberuh,

 

If your table contains start date, you can try to use datediff function to create a duration column.

 

Sample:

Duartion= DateDiff(Table[StartDate],Table[EndDate],HOUR)

If you table not contains the start date, you should find it first then calculate with it.

 

 

Reference link:

DATEDIFF Function (DAX)

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin Sheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.



For learning resources/Release notes, please visit: | |
1 REPLY 1
Community Support Team
Community Support Team

Re: Gantt Chart - Duration

Hi @jberuh,

 

If your table contains start date, you can try to use datediff function to create a duration column.

 

Sample:

Duartion= DateDiff(Table[StartDate],Table[EndDate],HOUR)

If you table not contains the start date, you should find it first then calculate with it.

 

 

Reference link:

DATEDIFF Function (DAX)

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin Sheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.



For learning resources/Release notes, please visit: | |

Helpful resources

Announcements
Back to School Contest

Back to School Contest

Engage and empower students with Power BI!

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Summit Australia 2019

Summit Australia 2019

Travel to Melbourne and network with thousands of peers!

Top Ideas
Users Online
Currently online: 399 members 3,822 guests
Please welcome our newest community members: