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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher 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
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.