Reply
asifkarimindia
New Member
Partially syndicated - Outbound

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

Syndicated - Outbound

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

Syndicated - Outbound

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

Syndicated - Outbound

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

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Syndicated - Outbound 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
avatar user

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)