Forum Discussion
RichardSLF
8 years agoRegular Visitor
Copy data in group with same ID, but missing data in one row
Hello all,
I have a following table:
| Contact No_ | Business Relation Code | Link to Table | No_ |
| KON00003 | ZAK | 0 | |
| KON00003 | OV02 | 1 | Z04482 |
| KON00005 | OV02 | 0 | |
| KON00005 | ZAK | 1 | Z04484 |
Where I have dupicate values in Contact No_ and would like to copy the corresponing data in No_ to the empty field, so it should look like this after the query, I appreciate any help with this. Thanks.
| Contact No_ | Business Relation Code | Link to Table | No_ |
| KON00003 | ZAK | 0 | Z04482 |
| KON00003 | OV02 | 1 | Z04482 |
| KON00005 | OV02 | 0 | Z04484 |
| KON00005 | ZAK | 1 | Z04484 |
Try this calculated column
New No = CALCULATE ( LASTNONBLANK ( TableName[No_], 1 ), FILTER ( ALL ( TableName ), TableName[Contact No_] = EARLIER ( TableName[Contact No_] ) ) )Hi RichardSLF,
After test, the solution Zubair_Muhammad posted is right. Please mark it as answer, so more people will get useful information from here.
Best Regards,
Angelia
2 Replies
- Zubair_Muhammad
Community Champion
Try this calculated column
New No = CALCULATE ( LASTNONBLANK ( TableName[No_], 1 ), FILTER ( ALL ( TableName ), TableName[Contact No_] = EARLIER ( TableName[Contact No_] ) ) ) - v-huizhn-msft
Microsoft Employee
Hi RichardSLF,
After test, the solution Zubair_Muhammad posted is right. Please mark it as answer, so more people will get useful information from here.
Best Regards,
Angelia