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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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