+ Reply to Thread
Results 1 to 12 of 12

[SOLVED] Appedning Power Queries, not all values added

  1. #1
    Registered User
    Join Date
    04-01-2017
    Location
    Belgium
    MS-Off Ver
    2020
    Posts
    21

    [SOLVED] Appedning Power Queries, not all values added

    Hi all,

    When appending 3 queries to 1, I'm having problems with the data with 1 of the queries with no clear reason.

    Below you'll see the original query took 2 values under the example name
    2017-06-20_11-35-55.jpg

    When appending queries, I get the following result:
    2017-06-20_11-36-32.jpg

    Why could this be happening? how is this solvable?

    Kind regards,

    Robbe
    Last edited by leukep; 06-21-2017 at 05:58 AM.

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Appedning Power Queries, not all values added

    Post your queries.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Registered User
    Join Date
    04-01-2017
    Location
    Belgium
    MS-Off Ver
    2020
    Posts
    21

    Re: Appedning Power Queries, not all values added

    Hereby the files.

    You'll find the queries in the data overview file
    and I added the data for query "GNT" (where the problem is situated)

    the query combining all is "together query"

    Regards,

    robbe
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    04-01-2017
    Location
    Belgium
    MS-Off Ver
    2020
    Posts
    21

    Re: Appedning Power Queries, not all values added

    Anyone? I'm really stuck here!

  5. #5
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Appedning Power Queries, not all values added

    Hi,

    One of the rows has "yes" for delivered but the other has "yes " with a trailing space and thus is excluded by your filter.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  6. #6
    Registered User
    Join Date
    04-01-2017
    Location
    Belgium
    MS-Off Ver
    2020
    Posts
    21

    Re: Appedning Power Queries, not all values added

    Hi,

    yes, but that is trimmed down in the together query.
    and is not related to the above question ?

  7. #7
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Appedning Power Queries, not all values added

    Quote Originally Posted by leukep View Post
    yes, but that is trimmed down in the together query.
    I do not see anywhere that you remove the spaces from that field.

    and is not related to the above question ?
    Quite the contrary- it is exactly why you only see one of the two records in your combined query. The combined query filters that column for "yes" and only one of the two rows matches that, since the other contains "yes ".

  8. #8
    Registered User
    Join Date
    04-01-2017
    Location
    Belgium
    MS-Off Ver
    2020
    Posts
    21

    Re: Appedning Power Queries, not all values added

    Great! Didnt know this would keep rows from disappearing
    thank you!

    So only if values appear in 2 or more of the underlying queries, the row will show ?

    regards,

  9. #9
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: [SOLVED] Appedning Power Queries, not all values added

    No, it's a simple append query which will produce all rows from all the source queries. It's just the filter you applied that was removing records.

  10. #10
    Registered User
    Join Date
    04-01-2017
    Location
    Belgium
    MS-Off Ver
    2020
    Posts
    21

    Re: [SOLVED] Appedning Power Queries, not all values added

    Ok,

    I dont see a filter set in the row column title.
    Neither in the advanced editor.

    I trimmed down now all rows, but now other values are not showing up (only see the yes values while others should show up too)

    regards

  11. #11
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: [SOLVED] Appedning Power Queries, not all values added

    Step 'Filtered Rows1' of your Together Query is:

    = Table.SelectRows(#"Capitalized Each Word1", each ([#"Delivered?"] = "Yes"))

    which restricts the output to only rows where the "Delivered?" column is "yes".

  12. #12
    Registered User
    Join Date
    04-01-2017
    Location
    Belgium
    MS-Off Ver
    2020
    Posts
    21

    Re: [SOLVED] Appedning Power Queries, not all values added

    Aaah indeed!
    Great help! thank you very much!

+ 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. Replies: 0
    Last Post: 05-30-2017, 04:48 PM
  2. Excel VBA Script Crashes When Refreshing Power Queries Using Task Scheduler
    By beaglesBuddy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-16-2017, 01:03 AM
  3. Help with multiple URLs and auto Power Queries
    By joffy1979 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-05-2015, 04:28 AM
  4. [SOLVED] Count most recent 12 values in a column that are >0 when values are added monthly
    By Phillycheese5 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-03-2014, 04:31 PM
  5. Replies: 0
    Last Post: 01-21-2013, 12:47 PM
  6. Embedded Access queries in Excel - if the database moves, how to update queries?
    By Paul_mcc in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-06-2012, 07:52 PM
  7. Help with IF - with a few added queries
    By TonyWA in forum Excel General
    Replies: 2
    Last Post: 06-27-2011, 11:36 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