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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
asifkarimindia
New Member

How to copy value from other Row

Hi experts,

Plz suggest way to copy value from a row, below example data,

there are 3 type of datas being maintained in same table,

1. right side last column is i Need from "Location"

2. 2nd Row is linked with 1st row having unique id between "Survey response master" with "Id"

3. 3rd Row is linked with 1st row having unique id between "Survey bucket" and "Id"

 

 

IdNameRecordTypeIdDateOfSubmissionLocationSurveyBucketSurveyResponseMasterMasterResponseIdColumn Needed
a8H4J0000008Vm4UAESR-1774420122X000000Arb7QAC30-06-20 16:42a8F0L000000Go6WUAS   a8F0L000000Go6WUAS
a8H4J0000008Vm8UAESR-1774480122X000000Arb6QAC30-06-20 16:42  a8H4J0000008Vm4UAE a8F0L000000Go6WUAS
a8H4J0000008VmQUAUSR-1774640122X000000Arb5QAC30-06-20 16:42 a8H4J0000008Vm8UAE a8H4J0000008Vm4a8F0L000000Go6WUAS
1 ACCEPTED SOLUTION
v-xicai
Community Support
Community Support

Hi @asifkarimindia ,

 

You may go to Query Editor, go to Add column -> Index column, create an index column (start from 1 ), click "Close & Apply" button. Then create column like DAX below.

 

Column Needed = VAR _FirstRowLocation= MAXX( FILTER( 'Table', 'Table'[Index]=1), [Location])

RETURN

IF(COUNTROWS('Table')=1, 'Table'[Location], IF( OR (SEARCH('Table'[MasterResponseId], 'Table'[Id],, -1), SEARCH('Table'[SurveyResponseMaster], 'Table'[Id],, -1) ) ,_FirstRowLocation , BLANK()))

154.PNG

Best Regards,

Amy 

 

Community Support Team _ Amy

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

3 REPLIES 3
v-xicai
Community Support
Community Support

Hi @asifkarimindia ,

 

You may go to Query Editor, go to Add column -> Index column, create an index column (start from 1 ), click "Close & Apply" button. Then create column like DAX below.

 

Column Needed = VAR _FirstRowLocation= MAXX( FILTER( 'Table', 'Table'[Index]=1), [Location])

RETURN

IF(COUNTROWS('Table')=1, 'Table'[Location], IF( OR (SEARCH('Table'[MasterResponseId], 'Table'[Id],, -1), SEARCH('Table'[SurveyResponseMaster], 'Table'[Id],, -1) ) ,_FirstRowLocation , BLANK()))

154.PNG

Best Regards,

Amy 

 

Community Support Team _ Amy

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@asifkarimindia , You can copy data across rows using earlier, I am not able to get logic with your description. Can you explain with example

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Hi Amit, @amitchandak 3 types of data is maintained in same table, i need value in column "Location" of first row in other 2 rows with vlookup - Unique Id should match, Unique relation given below 1. Row 1 & 2 is having "Id" & "SurveyResponse master" as common & unique 2. Row 1 & 3 are having "Id" & "MasterResponseId" as relation but last 3 digits are suffix

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.