+ Reply to Thread
Results 1 to 6 of 6

Power Query - No matches when mergin 2 querys

  1. #1
    Registered User
    Join Date
    04-14-2021
    Location
    Sweden
    MS-Off Ver
    Office 365
    Posts
    6

    Power Query - No matches when mergin 2 querys

    Added sample

    Having trouble mergin names with 2 querys, using 2 scripts in one of the queryes,

    = List.Select(Text.Split([Comments and Work notes], "#(lf)"), each not Text.Contains(_, "System") and (Text.EndsWith(_, "(Work notes)") or Text.EndsWith(_, "(Additional comments)"))
    = Table.Distinct(Table.FromList(List.Transform ( [Custom], each Text.Start(_, 19) & "," & Text.Range(_, 22, Text.PositionOf(_, "(")-22)), null, {"Date", "UserName"}))

    The scripts are in Added column 1 + Added column 2 inside Table1.
    Attached Files Attached Files
    Last edited by Drayne; 01-19-2022 at 11:22 AM. Reason: Added sample

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Power Query - No matches when mergin 2 querys

    So you don't have any matches, but why we cannot tell.

    There are instructions at the top of the page explaining how to attach your sample workbook.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, relevant cells highlighted and a few explanatory notes.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    04-14-2021
    Location
    Sweden
    MS-Off Ver
    Office 365
    Posts
    6

    Re: Power Query - No matches when mergin 2 querys

    Ive added a sample book.

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

    Re: Power Query - No matches when mergin 2 querys

    I did a clean and then a trim on the names. There was apparently some non printing character

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Excel 2016 (Windows) 32 bit
    A
    B
    C
    1
    Custom.1.1.UserName Count Members.Displayname
    2
    Baqer Nicole
    1
    Nicole
    3
    Jidbratt Olof
    2
    Olof
    4
    Kadir Dilan
    3
    Dylan
    5
    Olsson Åsa L
    3
    Åsa
    6
    Strömberg Jonathan
    5
    Jonathan
    7
    Strömbäck Alexandra
    3
    Alexandra
    8
    Torres Puente Victor
    2
    Victor
    9
    Andersdotter Freja
    2
    10
    Jönsson Oscar
    3
    11
    Ogard Ivarsson Alexandra
    3
    Sheet: Merge1
    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

  5. #5
    Registered User
    Join Date
    04-14-2021
    Location
    Sweden
    MS-Off Ver
    Office 365
    Posts
    6

    Re: Power Query - No matches when mergin 2 querys

    Thank you Alan,
    I wonder about the non printing char, is it from the columm "comments and work notes", or does it come from when select list is being used?

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

    Re: Power Query - No matches when mergin 2 querys

    Don't know as I did the Clean and Trim on both to be sure.

+ 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] 2 fields checker- Request for alternative option in Power Query or Power Pivot
    By Shareez Saleem in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-15-2020, 08:36 AM
  2. Replies: 10
    Last Post: 06-25-2020, 12:19 AM
  3. [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
  4. Replies: 4
    Last Post: 02-17-2020, 06:03 AM
  5. Excel Power Query Refresh or Access Query - 2nd Query Run is faster
    By Steveapa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-03-2020, 10:16 AM
  6. 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
  7. [SOLVED] Avoid Power Querys inserted as tables
    By Imbizile in forum Excel General
    Replies: 6
    Last Post: 04-15-2018, 09:24 AM

Tags for this Thread

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