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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Azurine13
Frequent Visitor

Need help with pivot/unpivot of multiple columns into rows.

I'm not sure that this can be done easily, but I have a table that holds multiple events in a single row. I need to break those events out into their own unique row to use in a visual. My dataset is fairly large and I can't change the structure unfortunately.

 

Here is an example of what I have vs. what I need to achieve: 

 

Azurine13_0-1711044459868.png

 

Any help is greatly appreciated, thank you!

 

1 ACCEPTED SOLUTION
gmsamborn
Super User
Super User

Hi @Azurine13 

 

I decided to do this in Power Query.  Fortunately, there is no coding.  The steps are as follows:

 

1. I merged the Break 1 columns into a single column with delimiter as "|".    (Select all 3 columns, right-click and select Merge Columns.)
2. I merged the Break 2 columns into a single column with delimiter as "|".
3. After selecting [Name], [Department], and [Date], Unpivot Other Columns.
4. I removed the [Attribute] column.
5. I split the [Value] column By Delimiter with delimiter set to "|".
6. I filtered to get rid of blank rows.
7. I renamed the columns.

 

Unpivot to multiple rows.pbix

 



Proud to be a Super User!

daxformatter.com makes life EASIER!

View solution in original post

3 REPLIES 3
Azurine13
Frequent Visitor

I can't believe it was this easy, thank you so much!! I was able to follow your instructions perfectly.

FromZero2BIHero
Frequent Visitor

 Here is my solution to a similar problem:

 

Pivot Multiple Columns Groups into Rows

gmsamborn
Super User
Super User

Hi @Azurine13 

 

I decided to do this in Power Query.  Fortunately, there is no coding.  The steps are as follows:

 

1. I merged the Break 1 columns into a single column with delimiter as "|".    (Select all 3 columns, right-click and select Merge Columns.)
2. I merged the Break 2 columns into a single column with delimiter as "|".
3. After selecting [Name], [Department], and [Date], Unpivot Other Columns.
4. I removed the [Attribute] column.
5. I split the [Value] column By Delimiter with delimiter set to "|".
6. I filtered to get rid of blank rows.
7. I renamed the columns.

 

Unpivot to multiple rows.pbix

 



Proud to be a Super User!

daxformatter.com makes life EASIER!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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