Results 1 to 4 of 4

Thread: Need a Unique Location Number

  1. #1
    Neophyte ronblaisdell's Avatar
    Join Date
    Jun 2017
    Location
    Michigan
    Posts
    3
    Articles
    0
    Excel Version
    Excel 2013, 2016, 2019, 365

    Need a Unique Location Number



    Register for a FREE account, and/
    or Log in to avoid these ads!

    So, I have a table of data where the "Unit Number" field may contain the same number, but these are separate locations. Trying to come up with a way to properly identify these so they may later be identified as distinct locations in the PowerPivot table.

    Sample data:
    Click image for larger version. 

Name:	Capture.PNG 
Views:	14 
Size:	31.6 KB 
ID:	8962

    I have tried a number of techniques, but I am "stuck." Ideally, since I don't want all the "1" locations to collapse in the PowerPivot, I'd like to create a new column that indicates a Unit Number of 1.0, 1.1, 1.2, 1.3, etc depending on the number of occurrences. I'm attaching a copy of the actual data file as well.

    Any help would be appreciated.
    Attached Files Attached Files

  2. #2
    Administrator Ken Puls's Avatar
    Join Date
    Mar 2011
    Location
    Nanaimo, BC, Canada
    Posts
    2,373
    Articles
    45
    Blog Entries
    14
    Excel Version
    Excel Office 365 Insider
    How's this?

    I just spun off a unique dimension, numbered it, divided it by 100, merged it back to the main table, then added it to the original number. I think that should do what you need.
    Attached Files Attached Files
    Ken Puls, FCPA, FCMA, MS MVP

    Learn to Master Your Data at the Power Query Academy (the world's most comprehensive online Power Query training), with my book M is for Data Monkey, or our new Power Query Recipe cards!

    Main Site: http://www.excelguru.ca -||- Blog: http://www.excelguru.ca/blog -||- Forums: http://www.excelguru.ca/forums
    Check out the Excelguru Facebook Fan Page -||- Follow Me on Twitter

    If you've been given VBA code (a macro) for your solution, but don't know where to put it, CLICK HERE.

  3. #3
    Neophyte ronblaisdell's Avatar
    Join Date
    Jun 2017
    Location
    Michigan
    Posts
    3
    Articles
    0
    Excel Version
    Excel 2013, 2016, 2019, 365
    Wow, interesting solution! Not even vaguely close to where I was going... ah, so many tricks to learn...

    Thanks!

  4. #4
    Neophyte ronblaisdell's Avatar
    Join Date
    Jun 2017
    Location
    Michigan
    Posts
    3
    Articles
    0
    Excel Version
    Excel 2013, 2016, 2019, 365

    Close!

    So I spend some extended time examining your solution versus the path I was traversing. I realized where I made my mistake!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •