This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
Good afternoon!
I am having a hard time making a query as I would using procv in excel.
I need to analyze the column "product code" and "document" throughout the table and for each occurrence I have the return value of 1.
I do not know how to do the power query please if you can help me.
Thanks
Solved! Go to Solution.
Hello
to simulate PROVC in Power Query, use this function
(SearchList as list, SearchTerm as any, ResultList as list) as any =>
let
Quelle = ResultList{List.PositionOf(SearchList, SearchTerm)}
in
Quelle
Have fun
Jimmy
Power query has the concept of merge which is more similar to SQL then PROCV. Learning it will lead to much faster solutions then any attempt to replicate vlookup within PQ.
Pick merger from the ribbon
Pick the two tables that you want to "vlookup" and select the columns that you wish to lookup.
The query will not look similar to the picture below.
Press the expand button on Table2 to pick the column that you want
You are then left with the result.
I have one warning about this approach. If the table that you are looking up has multiple values in it, then your result set will duplicate. You will have to determine how to handle this issue on a case by case basis.
Power query has the concept of merge which is more similar to SQL then PROCV. Learning it will lead to much faster solutions then any attempt to replicate vlookup within PQ.
Pick merger from the ribbon
Pick the two tables that you want to "vlookup" and select the columns that you wish to lookup.
The query will not look similar to the picture below.
Press the expand button on Table2 to pick the column that you want
You are then left with the result.
I have one warning about this approach. If the table that you are looking up has multiple values in it, then your result set will duplicate. You will have to determine how to handle this issue on a case by case basis.
Hello
to simulate PROVC in Power Query, use this function
(SearchList as list, SearchTerm as any, ResultList as list) as any =>
let
Quelle = ResultList{List.PositionOf(SearchList, SearchTerm)}
in
Quelle
Have fun
Jimmy
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 7 | |
| 5 | |
| 4 | |
| 4 | |
| 3 |