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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Roland74
Helper I
Helper I

Data from columns to rows (Gantt)

To create a ganttchart i need categorized data. In my model (ca. 6.000 rows) i've got all data in columns:

Roland74_0-1745495174182.png

For the gantt i (think i) need the data to be in rows, like:

Roland74_1-1745495217646.png

Is there an easy way to create this? 

1 ACCEPTED SOLUTION
Roland74
Helper I
Helper I

Hi Pankaj,

Thanx for your solution, but that won't work because i don't get the 'label' column and all the dates are in one column in stead of start- and enddate next to each other. 

My current 'work-around':

* Duplicate the table several times;

* Delete datecolumns in each table, i have 3 tables: 

    - Project // Start 1 // End 1

    - Project // Start 2 // End 2

    - Project // Start 3 // End 3

* Rename the columns, so they are identical;

* In each table, add a custom label column with fixed text, e.a. Task1, Task 2, etc.

* Append the tables

 

This works, but my live-table has got many more tasks with dates. i hope there is an easier way to do this.

View solution in original post

2 REPLIES 2
Roland74
Helper I
Helper I

Hi Pankaj,

Thanx for your solution, but that won't work because i don't get the 'label' column and all the dates are in one column in stead of start- and enddate next to each other. 

My current 'work-around':

* Duplicate the table several times;

* Delete datecolumns in each table, i have 3 tables: 

    - Project // Start 1 // End 1

    - Project // Start 2 // End 2

    - Project // Start 3 // End 3

* Rename the columns, so they are identical;

* In each table, add a custom label column with fixed text, e.a. Task1, Task 2, etc.

* Append the tables

 

This works, but my live-table has got many more tasks with dates. i hope there is an easier way to do this.

pankajnamekar25
Super User
Super User

Hello @Roland74 

use Power Query

Unpivot the Task Columns

Select the Project column.

Go to the ribbon: Transform → Unpivot Other Columns.

 

Thanks,
 Pankaj Namekar | LinkedIn

If this solution helps, please accept it and give a kudos (Like), it would be greatly appreciated.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.