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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
justlogmein
Helper III
Helper III

Doing a Vlookup but for data in groups (Excel Power Query/DAX)

I have a table of process paths (unique paths through a flowchart) and their assiocitated steps/questions. I have another table of answers to these steps/questions and I need to find which path the answers go through. The steps are not unique, what makes each path unique is the pemutations of the steps it has.

 

I need to get the Group letter of the path where all of the 'Old Process Step IDs' are shared between the path table and the answers table. They don't need to be in the same order, but if there are 20 in the answer table for a particular part, there needs to be 20 in the path group.

 

I have attempted this in DAX, but I think this is best suited to Power Query due to the grouping function. I just don't have the skills to do this though. Would someone mind taking a look at the attached file and let me know if there are some solutions for this?

 

(I can't locate a button to attach files on this forum) https://jmservicescomau-my.sharepoint.com/:x:/g/personal/jacob_jmservices_com_au/EQN-dxqnNWxFnnMuh-v...

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @justlogmein ,

 

Does @Thingsclump 's solution help you?

According to his solution, after merging, you can filter Group as i and PARTID as 1 to get the desired result.

vstephenmsft_0-1639464522260.png

 

Or you can create a calculated table using DAX.

Before you use the CROSSJOIN function, make sure that the column names of the two tables do not have the same name. Here I have modified the names of the Old Process Step ID.

Table =
FILTER (
    CROSSJOIN ( 'Question Mapping', 'Response List' ),
    [Old Process Step ID question] = [Old Process Step ID response]
)

vstephenmsft_2-1639464976643.pngvstephenmsft_3-1639464984172.png

vstephenmsft_4-1639465002605.png

After filtering, the result is as follows.

vstephenmsft_1-1639464936885.png

 

 

Best Regards,

Stephen Tao

 

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
Anonymous
Not applicable

Hi @justlogmein ,

 

Does @Thingsclump 's solution help you?

According to his solution, after merging, you can filter Group as i and PARTID as 1 to get the desired result.

vstephenmsft_0-1639464522260.png

 

Or you can create a calculated table using DAX.

Before you use the CROSSJOIN function, make sure that the column names of the two tables do not have the same name. Here I have modified the names of the Old Process Step ID.

Table =
FILTER (
    CROSSJOIN ( 'Question Mapping', 'Response List' ),
    [Old Process Step ID question] = [Old Process Step ID response]
)

vstephenmsft_2-1639464976643.pngvstephenmsft_3-1639464984172.png

vstephenmsft_4-1639465002605.png

After filtering, the result is as follows.

vstephenmsft_1-1639464936885.png

 

 

Best Regards,

Stephen Tao

 

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

 

 

 

Thingsclump
Resolver V
Resolver V

Hi @justlogmein 

 

Just import both tables in Power query.

 

Thingsclump_0-1639070501712.png

 

Then do a merge

Thingsclump_1-1639070547846.png

 

Then expand.

Thingsclump_2-1639070592782.png

 

Thanks

www.thingsclump.com 

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!

 

amitchandak
Super User
Super User

@justlogmein , For power quer vlookup, refer if this can help

https://eriksvensen.wordpress.com/2019/02/28/powerquery-replicate-doing-an-excel-vlookup-in-m/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.