nextchapter612
Programmer
I am a new Cognos user and desparately need help. I have been trying to create a what I think should be a simple cube based on a SQL Server database consisting of multiple tables.
Tables involved with main fields listed are:
tblCase
CaseID
CaseName
CaseCategoryID
CaseTypeID
Settled
DateSettled
SettlementAmount
InceptionDate
AttorneyID
LeadAttorneyID
tblExpense (multiple expense records per case)
ExpenseID
CaseID
RequestDate
FiscalYear
FiscalQtr
AmountRequested
DateRequested
AmountObligated
DateObligated
BudgetCategoryID
CaseCategoryID
CaseTypeID
tblBudget (multiple budget records per case)
BudgetID
CaseID
BudgetDate
FiscalYear
FiscalQtr
BudgetAmount
BudgetDate
BudgetCategoryID
CaseCategoryID
CaseTypeID
Problem:
The user wants to be able to see Case related Budget and Expense totals together based on fiscal year.
If I use separate .iqd for each table I will get the correct total figures but cannot get the Expenses and Budgets related when I look at the scope Each shows the correct information related to the case but not to each other. When I create a single .iqd combining all the fields, I can get all the columns related but the totals are incorrect because both the expenses and the budgets have multiple records per each case and therefore the totals become elevated. I have tried grouping the expense and budget amounts which works to some degree, but not all the totals are correct, I believe this is still related to multiple expense and budget information within a give fiscal year.
What can I do to resolve this.
Tables involved with main fields listed are:
tblCase
CaseID
CaseName
CaseCategoryID
CaseTypeID
Settled
DateSettled
SettlementAmount
InceptionDate
AttorneyID
LeadAttorneyID
tblExpense (multiple expense records per case)
ExpenseID
CaseID
RequestDate
FiscalYear
FiscalQtr
AmountRequested
DateRequested
AmountObligated
DateObligated
BudgetCategoryID
CaseCategoryID
CaseTypeID
tblBudget (multiple budget records per case)
BudgetID
CaseID
BudgetDate
FiscalYear
FiscalQtr
BudgetAmount
BudgetDate
BudgetCategoryID
CaseCategoryID
CaseTypeID
Problem:
The user wants to be able to see Case related Budget and Expense totals together based on fiscal year.
If I use separate .iqd for each table I will get the correct total figures but cannot get the Expenses and Budgets related when I look at the scope Each shows the correct information related to the case but not to each other. When I create a single .iqd combining all the fields, I can get all the columns related but the totals are incorrect because both the expenses and the budgets have multiple records per each case and therefore the totals become elevated. I have tried grouping the expense and budget amounts which works to some degree, but not all the totals are correct, I believe this is still related to multiple expense and budget information within a give fiscal year.
What can I do to resolve this.