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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
AnnaTokyo
New Member

How to combine two tasks in one bar using Gantt Chart

I wonder if possible to combine two tasks in one bar i.e., Period 1 & 2 adjacent to each other instead of beneath (show below).

I'm using Gantt Chart by MAQ.

Project NameTypeStart DatePeriod 1Period 2
Project ASimple01/02/202201/02/2022 - 01/03/202202/03/2022 - 31/03/2022
Project BMedium02/03/202202/03/2022 - 31/03/202201/04/2022 - 30/04/2022

 

Ganntt Chart.GIF

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

Hi @AnnaTokyo ,

 

Please try:

Start_Date = CALCULATE(MIN('Test'[Start Date]),REMOVEFILTERS(Test[Period]))

End_Date = CALCULATE(MAX('Test'[End Date]),REMOVEFILTERS(Test[Period]))

Output:

vjianbolimsft_0-1662012774316.png

Best Regards,

Jianbo Li

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

4 REPLIES 4
v-jianboli-msft
Community Support
Community Support

Hi @AnnaTokyo ,

 

Please try:

Start_Date = CALCULATE(MIN('Test'[Start Date]),REMOVEFILTERS(Test[Period]))

End_Date = CALCULATE(MAX('Test'[End Date]),REMOVEFILTERS(Test[Period]))

Output:

vjianbolimsft_0-1662012774316.png

Best Regards,

Jianbo Li

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

Seanan
Solution Supplier
Solution Supplier

Hi @AnnaTokyo 

Would it be possible for you to attached your PBIX file removing any sensitive data?

Hi @Seanan 

Thank you for your reply. Here is the link to the sample data set and Power BI file. Thank you for your time in advance. 

https://drive.google.com/drive/folders/1BE39-2zSwy2cpUeKP9tKFMpLRdqc4b5v?usp=sharing 

Hi @AnnaTokyo 

Apolgies for the delay in getting back to you.

 

Unfortunately, I wasn't able to find a way to combine your periods to make them adjacent to each other. Sorry I couldn't be of more help.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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