+ Reply to Thread
Results 1 to 2 of 2

Power Query Data Source change, reacts on cell formulas

  1. #1
    Registered User
    Join Date
    06-03-2021
    Location
    Greece
    MS-Off Ver
    Office 365
    Posts
    1

    Power Query Data Source change, reacts on cell formulas

    Dear All,

    We are using Excel 365, and we created an excel which imports data from SQL Server using Power Query, and on each sheet the cells are updated with formulas.

    What we have observed and we dont know how to fix is that when we change datasource to a Database which has no data inside the formulas on sheets remains OK, but when we change the datasource and there are data inside the power query table then the formulas on other sheets cells change:

    Example

    For example the Power-Query sheet after the refresh gets 20 rows of data then the formula on Sheet '1' changes from
    B8:=IFERROR(INDEX(PowerQuery!$A$4:PowerQuery!$A$100, XMATCH($D$2 & $D$3,PowerQuery!$B$4 : PowerQuery!$B$100 & PowerQuery!$C$4 : PowerQuery!$C$100,1)),"")

    To:

    B8=IFERROR(INDEX(PowerQuery!$A$24:PowerQuery!$A$100, XMATCH($D$2 & $D$3,PowerQuery!$B$24 : PowerQuery!$B$100 & PowerQuery!$C$24 : PowerQuery!$C$100,1)),"")

    What it does is that changes the formula of the cell from $B$4 to $B$24 and as a result we dont get the accurate data on cells.

    Is there a way to correct this issue, because the database will start from 0 and as rows are added everyday we are quite unsure if the excel will change the formulas by itself.


    Thanks in advance.

    Best Regards,

    RR

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

    Re: Power Query Data Source change, reacts on cell formulas

    crosspost https://www.mrexcel.com/board/thread...mulas.1172763/

    Rule 03: Cross-posting Without Telling Us

    Your post does not comply with Rule 3 of our Forum RULES. Do not cross-post your question on multiple forums without telling us about your threads on other forums.

    Post a link to any other forums where you have asked the same question.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Read this to understand why we ask you to do this.

    I have added the crosspost reference for you today. Please comply with this and all our rules in the future
    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

+ 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. [SOLVED] Power Query Data Source Error
    By plasteredric in forum Excel General
    Replies: 3
    Last Post: 12-30-2022, 02:10 AM
  2. [SOLVED] Power query showing different values then the source data
    By randall78 in forum Excel General
    Replies: 4
    Last Post: 03-18-2021, 10:12 AM
  3. Can I have a code to change the Power Query Source location?
    By hk57 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-05-2021, 09:36 PM
  4. Code to change Power Query source and refresh
    By kersplash in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-23-2021, 07:35 AM
  5. vba to change power query data source folder
    By Undo in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-22-2021, 11:29 PM
  6. [SOLVED] Tabulating Source Data using Power Query
    By josephteh in forum Excel General
    Replies: 2
    Last Post: 12-29-2020, 07:54 AM
  7. Replies: 5
    Last Post: 06-29-2018, 05:35 AM

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