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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

pranit828
Community Champion
Community Champion

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

 





PBI_SuperUser_Rank@1x.png


Hope it resolves your issue? 
Did I answer your question? Mark my post as a solution!

Appreciate your Kudos, Press the thumbs up button!!
Linkedin Profile
pranit828
Community Champion
Community Champion

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]





PBI_SuperUser_Rank@1x.png


Hope it resolves your issue? 
Did I answer your question? Mark my post as a solution!

Appreciate your Kudos, Press the thumbs up button!!
Linkedin Profile

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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