+ Reply to Thread
Results 1 to 2 of 2

PowerQuery: Merge Expression Errror 'count' argument -- Help Please!!

  1. #1
    Registered User
    Join Date
    01-15-2018
    Location
    Midwest
    MS-Off Ver
    Office 365
    Posts
    55

    PowerQuery: Merge Expression Errror 'count' argument -- Help Please!!

    I am trying to perform a merge query to see what UIDs are not in the first list that are in the second list and vice versa. I have two data sets with the following sizes:

    List 1 = 1811 (CM)
    List 2 = 1144 (HR)

    When I try to do a merge JoinKind.RightAnti it works. When I try to do a JoinKind.LeftAnti it produces an error "Expression.Error: The 'count' argument is out of range. Details: -1"

    JoinKind.RightAnti --> List 2 not in List 1 (success)
    JoinKind.LeftAnti --> List 1 not in List 2 (failure) --> = Table.NestedJoin(CMMS_Combined,{"NUID"},#"HRIS Engineer List Simplified",{"NUID"},"HRIS Engineer List Simplified",JoinKind.LeftAnti)

    What I have tried:
    1. I have verified that all duplicates for the UID linkage key in each list are removed.
    2. I have verified all nulls from UID field are removed.
    3. I have trimmed all UID fields.
    4. I have capitalized all UID fields.
    5. I have converted all UID fields to text.

  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: PowerQuery: Merge Expression Errror 'count' argument -- Help Please!!

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    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...

+ 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. PowerQuery to detect count of out of stock inventory days for items
    By chandramouliarun in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-05-2019, 02:47 AM
  2. [SOLVED] Get&Transform/PowerQuery Unique Count Rolling 12M
    By Speshul in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-10-2018, 10:37 AM
  3. What does the rows.count expression do
    By amartino44 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 06-24-2013, 01:15 PM
  4. How to count the number of times an expression is true
    By sherlock99 in forum Excel General
    Replies: 4
    Last Post: 06-22-2011, 06:46 AM
  5. SUM count and ADD expression with multipliers
    By MrHaugen in forum Excel General
    Replies: 11
    Last Post: 04-24-2009, 11:05 PM
  6. Evaluate expression to an argument
    By mbozovich in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-29-2009, 01:13 PM
  7. [SOLVED] Function (array argument, range argument, string argument) vba
    By Witek in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-24-2005, 11:07 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