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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
ksivaganesh99
Helper II
Helper II

Gantt chart start date issue

Hi all,

 

I am using Gantt chartpublished by Microsoft Corportation(https://appsource.microsoft.com/en-us/product/power-bi-visuals/WA104380765).

 

When the start date is null and duration is 0 it is picking up the present date as start date and duration as 1 day as attached in thescreenshot below. I don't want anything to e displayed in the timeline if the start date is null and duration is 0.

Annotation 2020-05-29 201505.png

 

Any help is highly apprecited.

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

Hi @ksivaganesh99 ,

 

You could create a measure like the following DAX:

Measure =
IF (
    SELECTEDVALUE ( 'Table'[duration] ) <> 0
        && SELECTEDVALUE ( 'Table'[StartDate] ) <> BLANK (),
    1,
    0
)

Then add it in the filter pane and set it to show the result whose measure = 1.

 

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

View solution in original post

2 REPLIES 2
v-eachen-msft
Community Support
Community Support

Hi @ksivaganesh99 ,

 

You could create a measure like the following DAX:

Measure =
IF (
    SELECTEDVALUE ( 'Table'[duration] ) <> 0
        && SELECTEDVALUE ( 'Table'[StartDate] ) <> BLANK (),
    1,
    0
)

Then add it in the filter pane and set it to show the result whose measure = 1.

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
collinq
Super User
Super User

Hi ksivaganesh99 ,

I would add a filter or a slicer to exclude those tasks that have no Start Date.




Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!
Private message me for consulting or training needs.




Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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