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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
rcbmulder
New Member

Gantt Chart with different task colors

Hello

 

I want to create a Tech refresh roadmap using power BI and so far come up with the following using Gantt chart 2.2.3:

 

rcbmulder_0-1634641132134.png

 

here is the data source (which I can tweak around with if required):

typeParentTechItemStartEnd
RUN version 1DatabaseDatabase A01/01/202001/01/2021
FUTURE version 2DatabaseDatabase A01/02/202101/01/2023
RUN v2.3DatabaseDatabase B01/06/202001/06/2021
FUTURE 3.1DatabaseDatabase B01/06/202201/06/2023

 

What would be cool is if I could make the 'RUN' types Green and the 'FUTURE' ones Orange programmatically somehow - I was thinking I could store the colours in excel too but I can't see a way to set 'task colour =' typecolour etc.

 

1 - is this feasible using Gantt

2 - is there a better chart I could use which would work better

 

I've googled and can't see anything like this for this chart type.

 

please help..

1 ACCEPTED SOLUTION
v-henryk-mstf
Community Support
Community Support

Hi @rcbmulder ,

 

In the version of Gantt Chart you provided, there is no option for a function corresponding to the color.

vhenrykmstf_1-1635300811364.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.

View solution in original post

7 REPLIES 7
Anonymous
Not applicable

  • I believe this can be achieved by adding another column to your dataset essentially categorizing the data by current, future, etc and then you can assign that to the legend which will assign colors for each category. 
naveenpowerbine
New Member

Hello,

 

How are you able to show text i.e. in your example "Type" on Gantt Chart bar? I'm looking for solution, please let me know. Thanks

v-henryk-mstf
Community Support
Community Support

Hi @rcbmulder ,

 

In the version of Gantt Chart you provided, there is no option for a function corresponding to the color.

vhenrykmstf_1-1635300811364.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.

v-henryk-mstf
Community Support
Community Support

Hi @rcbmulder ,

 

According to your description, you can use another version of Gantt Chart visual. in Format->Bar formatting you can set the colors for different tasks.

I did the test with the following reference:

vhenrykmstf_2-1634866543775.png

 

vhenrykmstf_0-1634866524993.png


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.

Hi - this doesn't allow me to group tasks on the SAME line as per my requirements and example.

amitchandak
Super User
Super User

@rcbmulder , I tried matrix as project plan, see if that can help

Matrix as Project plan Visual: https://youtu.be/R25QoiyoSVs

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

thanks - I watched the video - this would help but only if I can have 4 dates on the same line..

e.g. start1 end1 start2 end2 (there maybe a gap between end1 and start2) - I need to spend some more time on Matrix to undertstand how to program this..

If the Gant Chart 2.3.3 just had a task bar colour that could pull a colour from the data that would be perfect..

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors