Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hello everyone,
I hope you're doing great! I'm trying to look up a value in certain column and replace it with identical value in different row. Can someone please recommend how to do so?
Whenever a PO is #/# I would like to search in Document Text for identical column and replace the #/# with the PO matching in the new found row!
Sounds a bit complicated but I tried using Custom If column, but couldn't make the lookup function properly.
Bestr regards,
Omar
Thanks for the reply from @Uzi2019 , please allow me to provide another insight:
Hi @OmarAl ,
Here are the steps you can follow:
1. In Power Query – Add Column – Custom Column.
2. Enter the following code .
if [PO] = "#/#" then [Document] else [Custom]
3. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi Liu, I appreciate your help! But I would really like to replace the #/# with a PO number that is in dfifferent row. In example , the first #/# would ideally be replaced by 400500600 because it's matched witht the same text of Columne Document Text in row 2
Hi @OmarAl
Try below post for reference
https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-Lookup/m-p/2016427
I hope above post may resolves your issue!
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 45 | |
| 43 | |
| 39 | |
| 19 | |
| 15 |
| User | Count |
|---|---|
| 67 | |
| 66 | |
| 31 | |
| 28 | |
| 24 |