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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
jamieham
Helper II
Helper II

Creating New column by copying specific data from one column to another

I'm trying to create new colums for Carry Metres and Kick Metres based on a data set that looks like below. I need to copy the Carry Metres into a seperate column and the same with the Kick Metres and dont know how to do it, any help would be greatly appreciated.

 

ActionMetresCarry MetresKick Metres
Carry5  
Carry15  
Kick28  
Carry3  
Kick34  
Kick21  
Carry34  
1 ACCEPTED SOLUTION

Hi , @jamieham 

Try to create calculated column as below:

 

Carry_Metres = IF(Table_basic[Action]="Carry",Table_basic[Metres],BLANK())
Kick_Metres = IF(Table_basic[Action]="Kick",Table_basic[Metres],BLANK())

 

 99.png

For more details,please refer to the sample file.

 

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
v-easonf-msft
Community Support
Community Support

Hi ,  @jamieham 

By the way ,if  you  use  the function "pivot column"  in  "Transform Data", it is suggest to create a index column first .

100.png

Best Regards,
Community Support Team _ Eason

amitchandak
Super User
Super User

@jamieham , pivot - This should work in your case

https://radacad.com/pivot-and-unpivot-with-power-bi

Group data

https://www.poweredsolutions.co/2019/07/30/grouping-rows-with-power-bi-power-query/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi @jamieham 

 

I would go to Power Query editor

Select these two columns

On the  transform menu --> Pivot(Hope you have other columns in this table otherwise it will error out)

pranit828_0-1597708367495.png

 

Anonymous
Not applicable

Hi @jamieham 

Not very clear. What is your end goal?

How about creating a duplicate column for both.

Otherwise

carry meter new = [carry meter]

Kick meter new = [Kick meter]

I need to be able to seperate the kick metres and carry metres into different columns. At the moment kick and carry metres are both in the same column

Hi , @jamieham 

Try to create calculated column as below:

 

Carry_Metres = IF(Table_basic[Action]="Carry",Table_basic[Metres],BLANK())
Kick_Metres = IF(Table_basic[Action]="Kick",Table_basic[Metres],BLANK())

 

 99.png

For more details,please refer to the sample file.

 

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.