Here is my situation:
Running v.7.2.2 on Oracle 9i
Warehouse Tables:
Course_Dim has the name of the course
Student_Dim has the student's names, date of birth
Start_Date_Vw - a view of the Time dimension for date student started the course
End_Date_Vw - a view of the time dimension for date student finished the course
Course_Pass_Fact has FK's of all the dimensions and one fact: Days_to_complete (the course). We also are counting the number of students for a course as a fact.
I want a report that shows the average age of the students in each program at the time they started their course.
Course Name | # of Students | Avg Age of Student at Start |
----------------------------------------------------------
Course A 1000 37
Course B 1500 29
I can get a list of students and their current ages. I have the numbers of students. I am having trouble with the age of the student at the start of the course. First I am trying to get a list of students, with their age at the start of the course.
I tried to created an attribute using ApplySimple:
Error: Object (of type: Attribute) not allowed in this place.
When I put underscores in place of the spaces in the attribute names, I get:
Error - Searching for COMPLETER_START_DATE@Date resulted in no matches.
I tried using columns instead of attribute@Form, and got:
Error: YOu have selected columns from two different tables. Select columns from the same table before continuing.
I've also tried a different approach - a compound metric, going straight for the avg age. In the metric I tried relationship filters, and dimensionality in various combinations, and I kept ending up with one of the SQL passes querying the two dimension tables without the fact table nor any join, and the resulting metric was identical for all rows. That's when I went back to this simpler approach.
I have spent two days researching how to do this on MSTR KB and other sites.....please tell me about the proverbial "missing semicolon"!
Thanks.
Dave
Running v.7.2.2 on Oracle 9i
Warehouse Tables:
Course_Dim has the name of the course
Student_Dim has the student's names, date of birth
Start_Date_Vw - a view of the Time dimension for date student started the course
End_Date_Vw - a view of the time dimension for date student finished the course
Course_Pass_Fact has FK's of all the dimensions and one fact: Days_to_complete (the course). We also are counting the number of students for a course as a fact.
I want a report that shows the average age of the students in each program at the time they started their course.
Course Name | # of Students | Avg Age of Student at Start |
----------------------------------------------------------
Course A 1000 37
Course B 1500 29
I can get a list of students and their current ages. I have the numbers of students. I am having trouble with the age of the student at the start of the course. First I am trying to get a list of students, with their age at the start of the course.
I tried to created an attribute using ApplySimple:
Code:
ApplySimple( "Months_between(#0, TO_DATE(#1, 'YYYYMM'))/12", [Completer Start Date]@Date, [Completer Birth Date]@ID)
When I put underscores in place of the spaces in the attribute names, I get:
Error - Searching for COMPLETER_START_DATE@Date resulted in no matches.
I tried using columns instead of attribute@Form, and got:
Code:
ApplySimple( "Months_between(#0, TO_DATE(#1, 'YYYYMM'))/12", TIME_DATE, CONTACT_BIRTH_DATE)
I've also tried a different approach - a compound metric, going straight for the avg age. In the metric I tried relationship filters, and dimensionality in various combinations, and I kept ending up with one of the SQL passes querying the two dimension tables without the fact table nor any join, and the resulting metric was identical for all rows. That's when I went back to this simpler approach.
I have spent two days researching how to do this on MSTR KB and other sites.....please tell me about the proverbial "missing semicolon"!
Thanks.
Dave