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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Andy18831
New Member

Simple Gantt duration issue

Hi team

 

We are upgrading our IT and setting up a Gantt to report to the business.  Seems simple, using the free Gantt in BI.

Set up a sheet with some dummy data.  Piece of cake, right?!

 

Everything though, is coming up as 1 day duration.  it does not matter if I use the end date or duration.

 

The line I have indicated is is 46 days in duration however, it only shows as 1 day.  I can see the data field is set to "count" so I guess that is right as there is 1 thing to count but how do I get it to display the days required.

Or how to I get the end date to work?  Getting the same issue there to but it is lfirst or last date, or count.  Again, doesnt work.

 

Hoping for someone can assist

 

cheers

 

 

Andy1883_0-1720674485884.png

Andy1883_1-1720674620481.png

Andy1883_2-1720674689988.png

Andy1883_3-1720675180223.png

1 ACCEPTED SOLUTION
v-yilong-msft
Community Support
Community Support

Hi @Andy18831 ,

I think you can use this Gantt 3.0.12.0 visual.

vyilongmsft_0-1720761841856.png

I create a table as you mentioned.

vyilongmsft_1-1720761908584.png

Then I add it to the Gantt visual.

vyilongmsft_2-1720761954188.png

I also create a calculated column to calculate the duration and put it into the tooltip.

Duration = DATEDIFF('Table'[Start Date],'Table'[End Date], DAY)

vyilongmsft_3-1720762174699.png

 

 

 

Best Regards

Yilong Zhou

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

View solution in original post

2 REPLIES 2
v-yilong-msft
Community Support
Community Support

Hi @Andy18831 ,

I think you can use this Gantt 3.0.12.0 visual.

vyilongmsft_0-1720761841856.png

I create a table as you mentioned.

vyilongmsft_1-1720761908584.png

Then I add it to the Gantt visual.

vyilongmsft_2-1720761954188.png

I also create a calculated column to calculate the duration and put it into the tooltip.

Duration = DATEDIFF('Table'[Start Date],'Table'[End Date], DAY)

vyilongmsft_3-1720762174699.png

 

 

 

Best Regards

Yilong Zhou

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

miTutorials
Super User
Super User

I want to suggest an alternative Gantt visual which is available and really clean - Do give it a try!

 

Step by Step Tutorial to Create Gantt Chart in Power BI using Deneb | MiTutorials - YouTube

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.