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
infantpowerbi
Helper II
Helper II

How to copy the values of a column based on condition

Dear All,


I am from Tableau background and not so good in DAX expressions,
Below is my sample table format , Where I need to copy the values of Column Value to Column
A value where the Application Column is "A" .
I tried it in Edit Query and creating custom column but unable to get the result based on condition

Can any one please help me how can I make it

Capture.PNG

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@minfangx 

 

You can achieve with the help of 'Conditional Column' in the 'Add Column' ribbon in the Query Editor

 

Select Column in the Output showned in the below image

 

Conditional Column.JPG

 

 

 

 

 

 

 

Nandri

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@minfangx 

 

You can achieve with the help of 'Conditional Column' in the 'Add Column' ribbon in the Query Editor

 

Select Column in the Output showned in the below image

 

Conditional Column.JPG

 

 

 

 

 

 

 

Nandri

AlB
Super User
Super User

Hi @infantpowerbi 

You can use this code in the custom column:

 

if [Application] = "A" then [Value] else null

 

Please mark the question solved when done and consider giving kudos if posts are helpful.

Cheers  Datanaut

 

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.