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 August 31st. Request your voucher.

Reply
Divya_Kandasamy
Regular Visitor

Gantt Chart displaying only the data of selected Quarter

Hi,

 

I am trying to creat a Gantt Chart for projects that are in different phases (In pipeline, In progress, Test, Production).

I use Gant 2.2.3 with below details,

 

  • Start Date of the project in Start Date
  • End Date of the Project in End Date
  • Project Name as Task
  • Phase of the project as Legends
  • Team name as Parent

 

I just need to filter these projects based on Fiscal Year and Quarter (I have added them as Slicer). The Fiscal Year that I use, starts on Saturday (either end of Jan or start of Feb). So, I dont have a static month to be selected for the chart. Also, I have to filter them based on Quarters.

 

Example: If my project is in FY21 and the duration of that project is from Q1 to Q3 (Feb - Oct), and if I select Q1 then the chart should display only the month of that Q1 (Feb, March and April) and not all 9 months, irrespective of Start Date and End Date. 

 

I am getting the chart as below which needs to be fixed.

 

Divya_Kandasamy_0-1630138136525.png

 

 

Kindly help me to achieve this at any possible way. Thanks in advance!

5 REPLIES 5
v-henryk-mstf
Community Support
Community Support

Hi @Divya_Kandasamy ,

 

May wish to create a measure, use the SELECTEDVALUE function, set the date selected by the slicer to 1, and then put it into the filter in the Gantt Chart visual. As shown in the screenshot below, try to see if it works.

 

Measure = IF(SELECTEDVALUE(Tasks[Start]),1,0)

 

vhenrykmstf_0-1630401796442.png

vhenrykmstf_1-1630401832812.png


Best Regards,
Henry


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

Hi @v-henryk-mstf 

 

Sorry for the late response.

I tried creating a measure same as yours but still I did not see any difference. 

Hi @Divya_Kandasamy ,

 

Can you provide test data (delete sensitive information), otherwise I cannot do further tests.


 Looking forward to your reply.


Best Regards,
Henry

 

v-henryk-mstf
Community Support
Community Support

Hi @Divya_Kandasamy ,

 

First, you need to update pbi to the latest version. Then please format the columns to be dragged in Start and End fields, as Date or Date/Time. 

I did a similar test and the slicer can filter the results correctly:

vhenrykmstf_0-1630315789381.png

vhenrykmstf_1-1630315806046.png

 

For more details, you can read related blog as below:

How to Create a Gantt Chart in Power BI (Fast and Easy) (spreadsheeto.com)


If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.


Best Regards,
Henry


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

 

Below is my example pbix file.

@v-henryk-mstf 

 

Thanks for your response. The chart works fine if the data falls in the same quarter. My data runs through various quarters. 

 

For Example, If my start date and end date are in Q1 then it works as expected but if my start date is in Q1 and end date is in Q4, then it displays all 4 quarter. I tried with latest version as well. 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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