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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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