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
coolshib
Helper III
Helper III

Need help in Stacked Bar and to create a GANTT Chart

Hello Everyone,

I have the following dataset to create a stacked bar chart.

ProjectTaskProject Completion  (%)Duration (Hrs)Notes
Project1Task1 - Phase 154%480work in Progress
Project1Task1 - Phase 20%300will start from 1st july 2024
Project1Task2100%136 
Project1Task380%195handshake has not happened yet 
Project1Task40%40New Requirement by the user 
Project1Task580%174Resource issue 
Project2Task172%60Resource issue 
Project2Task2100%80 
Project2Task3100%148 
Project2Task4100%72 
Project3Task180%60Resource issue 
Project4Task1100%140 
Project5Task1100%64 
Project6Task155%160On-Track 
Project6Task2100%120 
Project6Task3100%24 
Project6Task4100%148 
Project6Task5100%15 

I Need to show the completion percentage along with the notes as data value on the chart. I have created a stacked bar chart showing the completion column value as the X axis and mentioning the remarks column value under the detail section in format.

Data value from the remarks column pertaining to Project Status with zero completion should also show on the chart.

Please refer to the screenshot which I have created where the zero completion task showing as blank. Need help on this as well.

coolshib_0-1718875041881.png

 

I also need to create a GANTT chart based on the above-mentioned dataset.

 

Many Thanks in Advance.

 

Regards,

Shib

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, @coolshib 

Power BI sometimes filters out or doesn't show categories that don't have data. A workaround is to add a very small value (e.g., 0.01%) to these zero-completion tasks to make them visible on the chart, and then display those values as 0% using a custom format as needed. Or you can try using the BarLabelStyle property to display data labels outside the bar chart for better viewing. For more information about customizing data point labels, see Custom data point labels:

Bar charts in a Power BI paginated report - Power BI | Microsoft Learn

 

Regarding the Gantt chart, you can go to the more visual to look for

vyohuamsft_0-1718957295558.png

vyohuamsft_1-1718957341160.png

 

How to Get Your Question Answered Quickly

Best Regards

Yongkang Hua

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
Anonymous
Not applicable

Hi, @coolshib 

Power BI sometimes filters out or doesn't show categories that don't have data. A workaround is to add a very small value (e.g., 0.01%) to these zero-completion tasks to make them visible on the chart, and then display those values as 0% using a custom format as needed. Or you can try using the BarLabelStyle property to display data labels outside the bar chart for better viewing. For more information about customizing data point labels, see Custom data point labels:

Bar charts in a Power BI paginated report - Power BI | Microsoft Learn

 

Regarding the Gantt chart, you can go to the more visual to look for

vyohuamsft_0-1718957295558.png

vyohuamsft_1-1718957341160.png

 

How to Get Your Question Answered Quickly

Best Regards

Yongkang Hua

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

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.