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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.