traviscook21
New Member
- Joined
- Oct 21, 2016
- Messages
- 2
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!
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!