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 August 31st. Request your voucher.

Reply
stockmarket123
New Member

How to split a column according to 2 different data types

Hi there

 

I am using Power query to transform a data set of different products (various alcohol brands).  However, Column 4 has 2 unique data sets: 1) Various Quarters in 2019, 2) Numerical Sales Margin by qtr.   

 

How can I split Column 4 into rows that will split both the various quarters in 2019 (Q1 2019, Q2 2019, etc) and 2) the margin ##'s into it's own separate column.  Please see 2 screenshow below.   the first screenshot shows the end desired result while The second screenshot shows what the original stock data set looks like.  Thank you.  I just need to know how to split the Column 4, I can figure everything else myselfPQ Screenshot_Splitting Column (End Result).png PQ Screenshot_Splitting Column.png

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

1. Split column4 by delimiter

2. select columns 1,2 and 3, and then "unpivot other columns"

3. cleanup your headers

View solution in original post

2 REPLIES 2
lbendlin
Super User
Super User

1. Split column4 by delimiter

2. select columns 1,2 and 3, and then "unpivot other columns"

3. cleanup your headers

yes.  this works perfectly!!.  thx

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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