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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
DataNinja_777
Frequent Visitor

Changing colors of Gantt 2.2.3 by field parameter

Hi 

 

I am trying to visualize the employee tenure using the Gantt 2.2.3, subsituting the project by employee name.  How can I change the color of the project line depending on the attributes of employees?  Is there any way to control the color of the project depending on the separate attributes field? 

DataNinja777_0-1697346146269.png

Thanks for your help!

1 ACCEPTED SOLUTION
DataNinja_777
Frequent Visitor

I subsequently found out that standard function in Gantt 2.2.3 allows additional legend field to differentiate color of different field.

DataNinja777_0-1697671878866.png

 

View solution in original post

5 REPLIES 5
DataNinja_777
Frequent Visitor

I subsequently found out that standard function in Gantt 2.2.3 allows additional legend field to differentiate color of different field.

DataNinja777_0-1697671878866.png

 

Is there a way we can change the names of - Legend, Task, Parent (as visible in the screenshot above) and other fields in the visual? I was only able to change the name of chart legend (as shown in the red rectangle)Screenshot 2023-12-05 125330.png

Was this gray part in the middle of the bars automatically created? How did you do it? Which Power BI layout are you using?

amitchandak
Super User
Super User

@DataNinja_777 , I have done for other visual not the Gantt Chart

Check

Field Parameters- Conditional Formatting
: https://amitchandak.medium.com/field-parameters-conditional-formatting-517aacc23fdf

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak 

 

Thanks for your response.  Do you know how I can change the color of Gantt 2.2.3 visual?  I'd appreciate if you could let me know as I quite like the visualization generated using Gantt 2.2.3.  

Thanks!

 

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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