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
Nivethan
New Member

I want to display data on Gantt chart only next 30 days from today date? Not all of them.

Adding a Gantt chart to my report. I want it to display only the tasks scheduled within the next 30 days from today. Currently, the chart includes all data, but I would like to limit it to just one month. Do you have any suggestions on how I can define this 30-day window?

Nivethan_1-1714147279157.png

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

Hi @Nivethan 

 

For your question, here is the method I provided:

 

Here's some dummy data

 

"Table"

vnuocmsft_0-1714355422857.png

 

Create new columns showing the next 30 days from today.

 

_Start Date = IF(TODAY() >= 'Table'[start date], TODAY(), 'Table'[start date])

 

_End Date = IF(TODAY() + 30 >= 'Table'[end date], 'Table'[end date], TODAY() + 30)

 

Create a Gantt chart and put in new date columns.

 

vnuocmsft_1-1714355663357.png

 

Here is the result.

 

vnuocmsft_2-1714355790797.png

 

Regards,

Nono Chen

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

1 REPLY 1
v-nuoc-msft
Community Support
Community Support

Hi @Nivethan 

 

For your question, here is the method I provided:

 

Here's some dummy data

 

"Table"

vnuocmsft_0-1714355422857.png

 

Create new columns showing the next 30 days from today.

 

_Start Date = IF(TODAY() >= 'Table'[start date], TODAY(), 'Table'[start date])

 

_End Date = IF(TODAY() + 30 >= 'Table'[end date], 'Table'[end date], TODAY() + 30)

 

Create a Gantt chart and put in new date columns.

 

vnuocmsft_1-1714355663357.png

 

Here is the result.

 

vnuocmsft_2-1714355790797.png

 

Regards,

Nono Chen

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

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.