Forum Discussion
INDEX MATCH in Power BI
- 4 years ago
Hi, Pretengineer
You can create a calculated column as below:
Match _PN = CALCULATE ( MAX ( PLM_DATA[PLM_PN] ), FILTER ( PLM_DATA, CONTAINSSTRING ( AP_DATA[aP_Model], PLM_DATA[PLM_Model] ) ) )Please check my sample file for more details.
Best Regards,
Community Support Team _ Eason
Hi, Pretengineer
If your dataset is too large, I don't think the original solution will work for you.
Take a try this new solution.
In 'Transform Data' , try feature 'Merge Queries' in Table 'AP_Data' to add a new table column
(or 'Merge Queries as new' to add a new Table query )
Result:
Please check my sample file for more detail.
Best Regards,
Community Support Team _ Eason
This was one other option I was looking at as well, I am a little concerned about the data I have. Some have partial numbers that don't match to the correct model number in the other table, so the fuzzy matching may cause errors. I will try it though. After adding the if statement and waiting longer and the first solution worked very well. It actually pulled over 1000 new numbers that my excel index match formula missed.
Thank you very much for you help.
Pretengineer