Closed Thread
Results 1 to 2 of 2

Lookup value from Power Query Dataset

Hybrid View

  1. #1
    Registered User
    Join Date
    10-06-2020
    Location
    Brisbane,Australia
    MS-Off Ver
    Office 365
    Posts
    4

    Lookup value from Power Query Dataset

    Hello from a first time forum user as well as an excel "learner".

    I am trying to populate a excel cell from a value stored in a data table. The data table is populated from a Power Query using the odbc.Query option.

    The excel worksheet contains a GL Account details (AccountCode,Description) and then a column for each month where each column contains either the actual balances for past months or forecast balances for forward months.
    Each month there is a requirement to replace the current month forecast balance with the actual balance (currently a manual task).

    I have managed to extract the data from the accounts database into a data table (GLBalances) that contains columns such as AccountCode, PeriodNo, Balance.
    My attempts to use combinations of VLOOKUP, INDEX and MATCH to extract the value from the data table and populate the excel cell have been unsuccessful as I cannot work out how how to reference the data table column as the source and then do a lookup using the AccountCode.

    Could someone please assist - should I be able to lookup a value stored in a data table and, if so, how do I identify the data table and column (range) that contains the source data.
    An example of a formula would be great.

    If the above won't work, are there any suggested other options to achieve the above.

    I hope the above makes sense and appreciate any assistance.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    24,019

    Re: Lookup value from Power Query Dataset

    Administrative Note:

    Welcome to the forum.

    Unfortunately, this is a duplicate thread, and you are allowed only ONE thread per issue here.

    Please see Forum Rule #5 about thread duplication.

    I am closing this thread, but you may continue here in the original thread
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Lookup value from Power Query Dataset
    By PB4InfoCentral in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-07-2020, 12:45 AM
  2. Replies: 10
    Last Post: 06-25-2020, 12:19 AM
  3. Unable to Lookup data from Power Query Connection
    By jclaborn in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-31-2020, 02:07 AM
  4. [SOLVED] Power Query - excel formula translation into Power Query
    By afgi in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 02-19-2020, 03:38 AM
  5. Replies: 4
    Last Post: 02-17-2020, 06:03 AM
  6. Power Query M language- Conditional Lookup/Merge
    By Ballet4ever in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-30-2019, 04:39 PM
  7. Sub-Forum for Excel Power Tools (Power Query, Power Pivot & Power BI)
    By chullan88 in forum Suggestions for Improvement
    Replies: 10
    Last Post: 06-28-2018, 02:25 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1