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
YunJ
Post Prodigy
Post Prodigy

How to change end date in gantt chart?

Hi,

I downloaded a gantt chart in marketplace.

Here is my raw data:

1.png

Here, I want to show the end date as 2/23 rather than 2/24, and the minute and second don't need to be shown.

2.png

Thanks a lot for your time.

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

Hi, @YunJ 

You can try these steps.

 

1 Set the duration unit as Hours and Duration min as 12 for Gantt visual

v-cazheng-msft_0-1615880261892.png

 

2 Set Date format as d for Gantt visual

v-cazheng-msft_1-1615880261895.png

 

The result looks like this:

v-cazheng-msft_0-1615889067199.png

Here is the pbix.

 

Best Regards,

Caiyun Zheng

 

Is that the answer you're looking for? 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

3 REPLIES 3
v-cazheng-msft
Community Support
Community Support

Hi, @YunJ 

You can try these steps.

 

1 Set the duration unit as Hours and Duration min as 12 for Gantt visual

v-cazheng-msft_0-1615880261892.png

 

2 Set Date format as d for Gantt visual

v-cazheng-msft_1-1615880261895.png

 

The result looks like this:

v-cazheng-msft_0-1615889067199.png

Here is the pbix.

 

Best Regards,

Caiyun Zheng

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Thanks @v-cazheng-msft ! That's exactly what I want. Also I'm wondering is there any document or instruction on Date format in this visual? For example, d means month/day/year in this case.

 

Thanks again for your time.

I haven't found any document or instruction, I judge it from the json file of the Gantt visual.

 

This is the part about date format in the json file:

patterns:{d:\"MM/dd/yyyy\",t:\"hh:mm tt\",T:\"hh:mm:ss tt\",f:\"dddd, MMMM dd, yyyy hh:mm tt\",F:\"dddd, MMMM dd, yyyy hh:mm:ss tt\",M:\"dd MMMM\"}

 

Best Regards

Caiyun Zheng

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.