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
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
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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.

Top Solution Authors