+ Reply to Thread
Results 1 to 4 of 4

How to update a custom function in Power Query

Hybrid View

  1. #1
    Registered User
    Join Date
    04-28-2022
    Location
    Canton, Michigan US
    MS-Off Ver
    365
    Posts
    41

    How to update a custom function in Power Query

    Hello,

    I watched a youtube vid for consolidating worksheets from multiple workbooks and it worked well. I started by creating a query for just one sheet from one workbook and using that to create a custom function and then a 2nd query to call all of the workbooks and invoking the custom function.

    Once completed, I realized that I should have removed rows from the bottom in the original query, which was easy enough. But the custom function did not automatically update and I cannot find anywhere to do so. Please tell me I do not need to start over from scratch and I'm simply overlooking something.

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: How to update a custom function in Power Query

    theory: try in original query Table.RemoveLastN(Source,5) (where 5 is a last five rows) then Refresh you result
    or post any example with your M and describe what you want to achieve

  3. #3
    Registered User
    Join Date
    04-28-2022
    Location
    Canton, Michigan US
    MS-Off Ver
    365
    Posts
    41

    Re: How to update a custom function in Power Query

    My original question relates to the Fn step highlighted in red on the attached screenshot. When I make a change to the original query "hFn Genrl Input" the Fn did not automatically update. Would Append Query be the appropriate next step?

    I also now have a secondary question. I am failing at the Fn creating tables because the worksheets in question have 1 column that does not stay consistent. It contains the monthly date on an individual level for which I tried changing the column heading prior to running the function. Internet searches suggested an IF/THEN statement but I am not sure how to do that within the query. I know that the simplest fix would be to change the column in the workbooks, however I am trying to avoid modifying the workbooks.
    Attached Images Attached Images

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: How to update a custom function in Power Query

    sorry but I am not a "graphic man",
    post an excel example file

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Power Query Custom function for running total
    By Dicken in forum Office 365
    Replies: 6
    Last Post: 10-29-2022, 10:58 AM
  2. Add Custom column of its own query name in power query
    By ks.Prajnan in forum Excel General
    Replies: 3
    Last Post: 07-27-2022, 09:24 AM
  3. Power query Custom function / parameter query
    By Dicken in forum Office 365
    Replies: 0
    Last Post: 03-23-2022, 10:41 AM
  4. Replies: 1
    Last Post: 02-14-2022, 06:23 AM
  5. Replies: 1
    Last Post: 11-17-2021, 08:35 AM
  6. Custom Permutations Column in Power Query from two columns in the same Query
    By PaintPaddy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-11-2019, 02:48 PM
  7. Power Query - Invoke Custom Function
    By leukep in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-12-2017, 02:18 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