+ Reply to Thread
Results 1 to 10 of 10

PowerPivot Tables

  1. #1
    Forum Contributor
    Join Date
    08-22-2011
    Location
    Texas, United States
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    516

    PowerPivot Tables

    I have a table called 'Car', in it i have a column called PolicyLink. the PolicyLink column contains numbers such as 445577, 445578, 445579, 445579, 445579. I am trying to associate how many cars are on a policy and what number that car will be given on the policy so I have a PolicyLink number and if it repeated more than once then the numbers will go in sequencial fasion until there is a new policy.



    PolicyLink --------------------- Car Number

    445577 --------------------- 1

    445578 -------------------- 1

    445579 --------------------- 1

    445579 --------------------- 2

    445579 --------------------- 3

    here i have 3 policies so i have the first policy having one car, second having one car, and the third having three cars and so on and so forth. I am looking for a formula to insert into a new column in PowerPivot called 'car number'. the number under PolicyLink is PolicyLink and the -- just represent a change in column, so there is a column called 'car number' with single digits in it. Any help is appretiated
    Last edited by amotto11; 08-24-2011 at 08:30 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: PowerPivot Tables

    PowerPivot?
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Contributor
    Join Date
    08-22-2011
    Location
    Texas, United States
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    516

    Re: PowerPivot Tables

    yes this is in powerpivot, sorry i changed my original question because i was under the impression of one thing when i needed to be looking at another. any hel p is greatly appretiated

  4. #4
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: PowerPivot Tables

    Do you have a numeric ID column in your Cars table? If so, you could use something like:

    =COUNTROWS(filter('Cars','Cars'[PolicyLink]=earlier('Cars'[PolicyLink]) && 'Cars'[ID]<earlier('Cars'[ID])))+1
    Remember what the dormouse said
    Feed your head

  5. #5
    Forum Contributor
    Join Date
    08-22-2011
    Location
    Texas, United States
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    516

    Re: PowerPivot Tables

    is there any way to do it without a nemeric id column, if not, what would i need to do to create one?

  6. #6
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: PowerPivot Tables

    In any well-structured database you should have a numeric ID field. Where is your data coming from originally?

  7. #7
    Forum Contributor
    Join Date
    08-22-2011
    Location
    Texas, United States
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    516

    Re: PowerPivot Tables

    well i have multiple tables, each having a primary key of its own and each having foreign keys. My table 'Policy' has a PolicyLink that is its primary key(unique numbers). In my table 'Car', there is a primary column that is called CarID, and what i am using as my foreign is the PolicyLink column and I have a relationship through that with my table 'Policy'.

  8. #8
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: PowerPivot Tables

    Then you can use CarID

  9. #9
    Forum Contributor
    Join Date
    08-22-2011
    Location
    Texas, United States
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    516

    Re: PowerPivot Tables

    thank you!

  10. #10
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: PowerPivot Tables

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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