+ Reply to Thread
Results 1 to 5 of 5

Count function from top - Excel Power Query

  1. #1
    Registered User
    Join Date
    08-13-2012
    Location
    Slovenia
    MS-Off Ver
    Excel 2010
    Posts
    72

    Count function from top - Excel Power Query

    Dear all,

    Could you please suggest me what function could help me in excel power query to use count formula.
    But I don’t want to have regular count but function which will count from top of the table and when some value is populate first time the result should be one, and when is populate the second time should be two.

    Example:
    Value in column | Count Result
    11 | 1
    22 | 1
    33 | 1
    11 | 2
    44 | 1
    22 | 2
    55 | 1
    11 | 3
    66 | 1
    22 | 3

    Thank you!
    BR
    Attached Files Attached Files
    Last edited by zeko90; 10-29-2020 at 04:23 AM. Reason: Attachment Added

  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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,461

    Re: Count function from top - Excel Power Query

    There are instructions at the top of the page explaining how to attach your sample workbook.
    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
    08-13-2012
    Location
    Slovenia
    MS-Off Ver
    Excel 2010
    Posts
    72

    Re: Count function from top - Excel Power Query

    Thank you! Attachment added.

  4. #4
    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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,461

    Re: Count function from top - Excel Power Query

    Here's a tutorial that covers it: https://www.youtube.com/watch?v=kjOmNPoVDYs

    You don't have a transaction number, so just add an index column first and use that as the transaction column is used in the tutorial.

  5. #5
    Registered User
    Join Date
    08-13-2012
    Location
    Slovenia
    MS-Off Ver
    Excel 2010
    Posts
    72

    Re: Count function from top - Excel Power Query

    Thank you! Really nice instruction will defenetly help!

+ 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 - excel formula translation into Power Query
    By afgi in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 02-19-2020, 03:38 AM
  2. Replies: 4
    Last Post: 02-17-2020, 06:03 AM
  3. 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
  4. [SOLVED] Power Query - Converting a query into a function
    By kersplash in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-29-2019, 12:17 AM
  5. [SOLVED] Excel Power Query - count formla, same entry shoud listed like A1,A2,A3
    By zeko90 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-31-2019, 02:45 PM
  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. Replies: 0
    Last Post: 04-05-2018, 01:16 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