![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
hi. i designed a measure based on the cube's time dimension using the periodstodate function. it works fine when all the members of the dimension are present in the query. the dimension contains acad year, term, and weeks. now i want to perform a query to get the measure for specific weeks. the problem is that the periodstodate is not working correctly anymore.i noticed that all the previous weeks should be present for it to give correct results. is there a way to let the cube have the measure already calculated and me selecting it instead of it doing the calculation at run time and giving me inaccurate results? i hope i explained right thanks Christina |
#3
| |||
| |||
|
|
Hmm - I would guess that your data tables below the OLAP cubes are current snapshots of data (since you're using the PTD function). To have your cube redesigned so that they will already calculate the data so that you do not need to do this during run time, you would create a cummulative table vs. a snaphot table. What I mean is that instead of the row within the table for that particular week to have the measures for that week (e.g. for week 28, there were 5 purchases), you would have that row contain the cummulative measure (e.g. for week 28, there were 500 purchases from week 1 to week 28). The problem with this approach is that you can only do cummulative calculations against this cube based on a point in time. That is, you need to specifically choose a date (e.g. week 28) vs. no date or a range of dates because the measures do not make sense when spanning across multiple dates. Saying this, could you clarify why the PTD function isn't working for you for weekly queries? There may be another way to approach this calculation without necessarily doing all of this work. -- HTH! Denny Lee dennyglee_at_hotmail_dot_com space: http://spaces.msn.com/members/denster/ "TinaWina" <TinaWina (AT) discussions (DOT) microsoft.com> wrote in message news 3FAA98B-46BD-452E-B3DA-A4C7EDB19B66 (AT) microsoft (DOT) com...hi. i designed a measure based on the cube's time dimension using the periodstodate function. it works fine when all the members of the dimension are present in the query. the dimension contains acad year, term, and weeks. now i want to perform a query to get the measure for specific weeks. the problem is that the periodstodate is not working correctly anymore.i noticed that all the previous weeks should be present for it to give correct results. is there a way to let the cube have the measure already calculated and me selecting it instead of it doing the calculation at run time and giving me inaccurate results? i hope i explained right thanks Christina |
![]() |
| Thread Tools | |
| Display Modes | |
| |