+ Reply to Thread
Results 1 to 4 of 4

Power Query Custom Index Column

  1. #1
    Forum Contributor
    Join Date
    08-03-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    647

    Power Query Custom Index Column

    Hi, I wanted to add a custom index so each 111, 222, 333, 444, etc. or 123, 123, 123, 123, etc ,

    So in excel either

    QUOTIENT(SEQUENCE(25,,0,1),3)+1

    or MOD(SEQUENCE(25,,0,1),3)+1
    others are available 樂

    so I though I could use the index column and just increase by a fraction and round; but the problem is

    1.8 + 0.2 is not 2, it's 1.9999999999999998

    so it throws everything out, so without grouping or creating a list in generate and then putting together is there another approach or way around this?

    One quick fix I've since found is to add a small number so ;

    Please Login or Register  to view this content.
    Richard.
    Attached Files Attached Files
    Last edited by Dicken; 04-29-2024 at 11:45 AM. Reason: More information

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,298

    Re: Power Query Custom Index Column

    Just use a normal index starting at 1 then something like:

    Please Login or Register  to view this content.
    Remember what the dormouse said
    Feed your head

  3. #3
    Forum Contributor
    Join Date
    08-03-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    647

    Re: Power Query Custom Index Column

    Thank you.
    Again.
    RD

  4. #4
    Forum Contributor
    Join Date
    08-03-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    647

    Re: Power Query Custom Index Column

    mind you, one thing I ended up having good read up on the why.

+ 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] Filter a Custom Column in Power Query
    By chi05 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-11-2023, 03:05 PM
  2. Power Query Custom Column Formula
    By sharonca in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-01-2023, 03:16 PM
  3. [SOLVED] Power Query - Custom column
    By chris1089 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-13-2023, 01:22 PM
  4. Add Custom column of its own query name in power query
    By ks.Prajnan in forum Excel General
    Replies: 3
    Last Post: 07-27-2022, 09:24 AM
  5. Custom Permutations Column in Power Query from two columns in the same Query
    By PaintPaddy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-11-2019, 02:48 PM
  6. [SOLVED] Power Query Custom Column Formula
    By whiskeybravo91 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 08-06-2018, 11:10 AM
  7. Power Query Custom Column Formula
    By whiskeybravo91 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-06-2018, 09:57 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