Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi and good morning,
I have to develop a Gantt Chart that shows the year and quarters based on the following specifications,😀
Project | Start Date | End Date | Duration | Status |
Project 1 | 1/1/2022 | 5/1/2022 | 120 | Completed |
Project 2 | 5/5/2022 | 12/1/2022 | 210 | Pending |
Project 3 | 12/5/2022 | 5/10/2023 | 156 | Pending |
Project 4 | 5/11/2023 | 12/1/2023 | 204 | Pending |
I have see many Gantt Charts showing years and months but looking for a way to create the Gantt chart that shows Year on top and Quarter under the years.
This Gantt Chart will need to be customized for Bar size and colors and other important features.
I really appreciate your help on this.
Thank you,
Solved! Go to Solution.
Hi @Lipa , I understand you are facing an issue with creating line chart where latest build will be displayed black color always. To create a Gantt Chart in Power BI that displays Years on top and Quarters under each year
✅ Step 1: Load Data into Power BI
Ensure that Start Date and End Date columns are in Date format (you may need to clean/transform the data in Power Query).
✅ Step 2: Create Date Table
Create a Date Table with Year & Quarter columns:
Use DAX:
DateTable = ADDCOLUMNS ( CALENDAR (MIN(Projects[Start Date]), MAX(Projects[End Date])), "Year", YEAR([Date]), "Quarter", "Q" & FORMAT(QUARTER([Date]), "0") )
Relate your Projects[Start Date] to DateTable[Date].
In visuals or slicers, use the DateTable[Year] and DateTable[Quarter] fields for filters or display.
Drag these fields:
In the Gantt visual formatting options:
Go to Bar formatting:
Change bar thickness or height.
Set color by Status:
Enable Data Labels if needed.
Turn on Gridlines, Milestones, etc., as needed.
⭐Hope this solution helps you make the most of Power BI! If it did, click 'Mark as Solution' to help others find the right answers.
💡Found it helpful? Show some love with kudos 👍 as your support keeps our community thriving!
🚀Let’s keep building smarter, data-driven solutions together! 🚀
Hi @Lipa , I understand you are facing an issue with creating line chart where latest build will be displayed black color always. To create a Gantt Chart in Power BI that displays Years on top and Quarters under each year
✅ Step 1: Load Data into Power BI
Ensure that Start Date and End Date columns are in Date format (you may need to clean/transform the data in Power Query).
✅ Step 2: Create Date Table
Create a Date Table with Year & Quarter columns:
Use DAX:
DateTable = ADDCOLUMNS ( CALENDAR (MIN(Projects[Start Date]), MAX(Projects[End Date])), "Year", YEAR([Date]), "Quarter", "Q" & FORMAT(QUARTER([Date]), "0") )
Relate your Projects[Start Date] to DateTable[Date].
In visuals or slicers, use the DateTable[Year] and DateTable[Quarter] fields for filters or display.
Drag these fields:
In the Gantt visual formatting options:
Go to Bar formatting:
Change bar thickness or height.
Set color by Status:
Enable Data Labels if needed.
Turn on Gridlines, Milestones, etc., as needed.
⭐Hope this solution helps you make the most of Power BI! If it did, click 'Mark as Solution' to help others find the right answers.
💡Found it helpful? Show some love with kudos 👍 as your support keeps our community thriving!
🚀Let’s keep building smarter, data-driven solutions together! 🚀
Thanks so much Lipa. I greatly appreciate it and I'll be working on this shortly. Kamran
Hi @kamini For this, you will need to use a custom Gantt chart visual like Gantt by MAQ Software. Create calculated columns for Year and Quarter, or combine them into one (Year & " Q" & Quarter) for the axis. Customize the bar sizes and colors dynamically using DAX measures based on status.
Thank you for your recommendation. I'll proceed. Since I'm not an expert or novice users in Power BI, would it be possible if you share a sample .pbix with me using this MAQ plugin?
User | Count |
---|---|
84 | |
76 | |
75 | |
43 | |
36 |
User | Count |
---|---|
109 | |
56 | |
52 | |
48 | |
43 |