Forum Discussion

vinayaka123's avatar
vinayaka123
Regular Visitor
1 year ago
Solved

Data not loading from Power query in excel

Hi team, I have prepared this excel file which has power query with the help of this forum but it is not loading the data as there is fuzzy vlookup and more records in concur file. Can someone pleas...
  • v-kpoloju-msft's avatar
    1 year ago

    Hi vinayaka123,

    Thank you for reaching out and providing details about your Power Query setup. I understand you're encountering issues with data not loading, particularly when using fuzzy matching with larger datasets, and you're interested in dynamically setting the file path from an Excel cell.

    Fuzzy matching in Power Query can be resource-intensive, particularly with large datasets. Here are some recommendations to enhance performance:

    • Adjust Similarity Threshold: Lowering the similarity threshold can reduce computational load. Refer to Microsoft's documentation on how fuzzy matching works in Power Query for guidance.
    • Limit Columns for Matching: Use only necessary columns for the fuzzy match to minimize processing time.
    • Use Table.Buffer(): Applying Table.Buffer() to the smaller table before merging can improve performance by preventing multiple evaluations. Learn more about this in Power Query best practices.
    • Filter Early: Apply filters to reduce the dataset size before performing the merge. This approach is emphasized in the best practices documentation.

    Yes, it's possible to set the file path dynamically using a cell value in Excel. Here's how:

    1. Enter File Path in a Cell: Input your desired file path into a cell, say A1.
    2. Name the Cell: Assign a name to this cell, for example, SourcePath, using the Name Manager.
    3. Reference in Power Query: In Power Query, reference this named cell as follows:
    Source = Excel.Workbook(File.Contents(Excel.CurrentWorkbook(){[Name="SourcePath"]}[Content]{0}[Column1]), null, true)

     

    This method allows you to change the file path directly from the Excel sheet without modifying the query each time. For more details, refer to the Power Query parameters documentation.

    Additional steps:

    • Check for Errors: In the Power Query Editor, look for any steps marked with errors (indicated by a yellow triangle) and address them accordingly.
    • Enable Load to Worksheet: Ensure that the final query is set to load to the worksheet or data model as needed.
    • Test with Smaller Data: Run the query with a smaller subset of your data to confirm that the logic works before scaling up.

    If this post helps, then please give us ‘Kudos’ and consider Accept it as a solution to help the other members find it more quickly.

    Thank you for using Microsoft Community Forum.