+ Reply to Thread
Results 1 to 7 of 7

Power Pivot With 2 tables Relating Issue

  1. #1
    Registered User
    Join Date
    07-09-2015
    Location
    United States
    MS-Off Ver
    2013
    Posts
    52

    Power Pivot With 2 tables Relating Issue

    Thanks for any help in advance!
    I have two table in my data model (1. ProductionAnalysis 2.ARTransaction)
    I need to create a pivot table pulling the accounting date from the ARTransaction table and Facility Name, Case Count, and Total Billed from the ProductionAnalysis table.

    My issue is I keep getting the repeating values for each facility for each date for example it looks like this


    Facility A Case Count Total Billed
    7/1/16 51 200
    8/1/16 34 175
    Facility B
    7/1/16 51 200
    8/1/16 34 175
    Facility C
    7/1/16 51 200
    8/1/16 34 175

    It's as if it's not recognizing the facilities. It's just giving me the total numbers of all the facilities combined in each date.

    Here are the list of columns from each tables.
    ARTransaction:
    ProvOrgID
    AccountID
    ServiceLineID
    TransactionCodeID
    OnAccountID
    DistributionItemID
    AdjustmentID
    RefundItemID
    Amount
    AccountingDt
    EntryDt
    EntryBy
    ID
    PaymentRank


    Production Analysis:
    IncidentID
    ServiceLineID
    CPTCode
    TypeOfServiceID
    ASACode
    PGID
    PGLabel
    PGValue
    ProviderID
    Provider
    IsAnesthesiaCaption
    IsAnesthesia
    BillingType
    SGID
    SGLabel
    SGValue
    Quantity
    TotalBilled
    TotalExpected
    WorkRBRVS
    PracticeRBRVS
    MalpracticeRBRVS
    TotalRBRVS
    ProcedureMinutes
    BaseUnits
    TimeUnits
    PSU
    TotalUnits
    CaseCount
    ActionType
    ProvOrgID
    ProvOrgName
    ProfTypeID
    ProfType
    RefProvID
    RefProv
    IncRptClassID
    IncRptClass
    InsPlanID
    InsPlan
    InsPayerID
    InsPayer
    FacilityID
    Facility


    I can't use ServiceLineID as a relatable column because there are duplicate values of ServiceLineID in the ARTransaction table.


    I know this is kinda of high level stuff, at least it is to me haha, so any help is greatly appreciated.

    Thanks!

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Power Pivot With 2 tables Relating Issue

    Hi,

    What relationships have you set up between the two tables?
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Registered User
    Join Date
    07-09-2015
    Location
    United States
    MS-Off Ver
    2013
    Posts
    52

    Re: Power Pivot With 2 tables Relating Issue

    Quote Originally Posted by xlnitwit View Post
    Hi,

    What relationships have you set up between the two tables?
    I believe that's the part I'm struggling with. I thought the best way was to use ServiceLineID for each table but in that column there are multiple values (serviceline ID #'s) so it wouldn't let me.

    Thanks,

  4. #4
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Power Pivot With 2 tables Relating Issue

    You cannot set up a many to many relationship join. What is the relationship that determines which records from one table belong to a single record in the other table?

    If you cannot define that, it would seem you require an additional table.

  5. #5
    Registered User
    Join Date
    07-09-2015
    Location
    United States
    MS-Off Ver
    2013
    Posts
    52

    Re: Power Pivot With 2 tables Relating Issue

    Quote Originally Posted by xlnitwit View Post
    You cannot set up a many to many relationship join. What is the relationship that determines which records from one table belong to a single record in the other table?

    If you cannot define that, it would seem you require an additional table.
    That makes sense. I think I may have to pull in the ServiceLine table as well. I would then use that as my lookup table to link the other two tables based on the ServiceLineID column?

    Thanks,

  6. #6
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Power Pivot With 2 tables Relating Issue

    I can't say for sure- I don't know your data model.

  7. #7
    Registered User
    Join Date
    07-09-2015
    Location
    United States
    MS-Off Ver
    2013
    Posts
    52

    Re: Power Pivot With 2 tables Relating Issue

    Quote Originally Posted by xlnitwit View Post
    I can't say for sure- I don't know your data model.
    I'm pretty sure this will work. It makes more sense now. Thanks for clearing that up. I'm going to need to pull in more tables because I used a sql statement to pull in my data in Power Query that is using several other tables to give me my ProductionAnalysis table.

+ 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 Pivot Linked Tables Refresh
    By habsfan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-02-2016, 10:09 AM
  2. Replies: 0
    Last Post: 02-16-2016, 05:34 AM
  3. pivot tables vs. power pivot for large data set
    By stephme55 in forum Excel General
    Replies: 3
    Last Post: 02-08-2016, 05:40 PM
  4. [SOLVED] is power pivot faster than regular pivot tables
    By stephme55 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 01-27-2016, 01:21 PM
  5. [SOLVED] Question on Updating my Pivot Tables and Power Pivot in my workbook
    By rv02 in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 01-29-2015, 06:08 PM
  6. [SOLVED] Power Pivot join tables question
    By ericedholm in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-09-2013, 10:53 AM
  7. Date formats in pivot tables using power pivot in Excel 2010.
    By myobreportguru in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 03-25-2013, 10:21 PM

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