Puzzling OLAP problem - help !!!

Puzzling OLAP problem - help !!!

Post by kokan » Tue, 28 Jan 2003 22:05:24



I need some help  regarding MDX and Analysis Services.

        My requirement is something like this ... I need to develop a
        report similar to the following example

               |    Perc   |   Score   |     Rating
        ________________________________________

          A   |         90 %  |     23      |      Above Average
        ________________________________________

          B   |     64 % |      7       |       Below Average
        ________________________________________

        and so on.

        The field Perc is a Calculated Member and can be assumed
something like this ( [A] , [Time].[2003].[Jan] )

        I now have a table in my Database called as DIM_SCORE

Eg.

            Key    |     Start    |      End     |    Score   |  Rating
        ___________________________________________________

              1      |      91      |     100        |    25
              |   Excellent
            ___________________________________________________

          2      |      81      |     90          |   23        |
          Above Average
        ___________________________________________________

            . .. ...
            . .. ...
            . .. ...
        ___________________________________________________

         3      |      61       |    70          |    7         |
         Below Average
            ___________________________________________________

The puzzling part is that I need to figure out which range ( Start : End
) , the Perc value falls in and need to display Score and Desc
correspondingly.

i.e as the Perc value 90 falls in the range 81:90 , it must display a
  score of 23 and Rating as ABove Average. The values must be fetched
  dynamically from the table.

Of COurse, this can be hardcoded in the Calc Member, but is there anyway
to do it dynamically.

--
Posted via http://dbforums.com

 
 
 

Puzzling OLAP problem - help !!!

Post by Tom Cheste » Wed, 29 Jan 2003 01:37:23


Kokank, for a dynamic data-driven solution I suggest the following approach,
in broad strokes:

1) Build a separate cube to contain the threshholds.
2) If the threshholds are global, and constant over time, this cube will
have one Grade dimension, with the members {A, B, C, etc.}
3) The Grade dim will have a Rating member property that contains the Rating
descriptors
4) One measure will define the min score neccesary to achieve the grade
5) Combine the cubes together in a virtual cube (or else use LookupCube)


   www.tomchester.net


Quote:

> I need some help  regarding MDX and Analysis Services.

>         My requirement is something like this ... I need to develop a
>         report similar to the following example

>                |    Perc   |   Score   |     Rating
>         ________________________________________

>           A   |         90 %  |     23      |      Above Average
>         ________________________________________

>           B   |     64 % |      7       |       Below Average
>         ________________________________________

>         and so on.

>         The field Perc is a Calculated Member and can be assumed
> something like this ( [A] , [Time].[2003].[Jan] )

>         I now have a table in my Database called as DIM_SCORE

> Eg.

>             Key    |     Start    |      End     |    Score   |  Rating
>         ___________________________________________________

>               1      |      91      |     100        |    25
>               |   Excellent
>             ___________________________________________________

>           2      |      81      |     90          |   23        |
>           Above Average
>         ___________________________________________________

>             . .. ...
>             . .. ...
>             . .. ...
>         ___________________________________________________

>          3      |      61       |    70          |    7         |
>          Below Average
>             ___________________________________________________

> The puzzling part is that I need to figure out which range ( Start : End
> ) , the Perc value falls in and need to display Score and Desc
> correspondingly.

> i.e as the Perc value 90 falls in the range 81:90 , it must display a
>   score of 23 and Rating as ABove Average. The values must be fetched
>   dynamically from the table.

> Of COurse, this can be hardcoded in the Calc Member, but is there anyway
> to do it dynamically.

> --
> Posted via http://dbforums.com


 
 
 

Puzzling OLAP problem - help !!!

Post by SQL Server Development Team [MSFT » Fri, 31 Jan 2003 04:01:05


Just to add my 2c here. Lookupcube hurts performance. Virtual cubes are
generally preferable.

Regards,
Richard Tkachuk

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.


> Kokank, for a dynamic data-driven solution I suggest the following
approach,
> in broad strokes:

> 1) Build a separate cube to contain the threshholds.
> 2) If the threshholds are global, and constant over time, this cube will
> have one Grade dimension, with the members {A, B, C, etc.}
> 3) The Grade dim will have a Rating member property that contains the
Rating
> descriptors
> 4) One measure will define the min score neccesary to achieve the grade
> 5) Combine the cubes together in a virtual cube (or else use LookupCube)


>    www.tomchester.net



> > I need some help  regarding MDX and Analysis Services.

> >         My requirement is something like this ... I need to develop a
> >         report similar to the following example

> >                |    Perc   |   Score   |     Rating
> >         ________________________________________

> >           A   |         90 %  |     23      |      Above Average
> >         ________________________________________

> >           B   |     64 % |      7       |       Below Average
> >         ________________________________________

> >         and so on.

> >         The field Perc is a Calculated Member and can be assumed
> > something like this ( [A] , [Time].[2003].[Jan] )

> >         I now have a table in my Database called as DIM_SCORE

> > Eg.

> >             Key    |     Start    |      End     |    Score   |  Rating
> >         ___________________________________________________

> >               1      |      91      |     100        |    25
> >               |   Excellent
> >             ___________________________________________________

> >           2      |      81      |     90          |   23        |
> >           Above Average
> >         ___________________________________________________

> >             . .. ...
> >             . .. ...
> >             . .. ...
> >         ___________________________________________________

> >          3      |      61       |    70          |    7         |
> >          Below Average
> >             ___________________________________________________

> > The puzzling part is that I need to figure out which range ( Start : End
> > ) , the Perc value falls in and need to display Score and Desc
> > correspondingly.

> > i.e as the Perc value 90 falls in the range 81:90 , it must display a
> >   score of 23 and Rating as ABove Average. The values must be fetched
> >   dynamically from the table.

> > Of COurse, this can be hardcoded in the Calc Member, but is there anyway
> > to do it dynamically.

> > --
> > Posted via http://dbforums.com

 
 
 

1. Puzzling OLAP doubt : Help required

I need some help  regarding MDX and Analysis Services.

        My requirement is something like this ... I need to develop a
        report similar to the following example

               |    Perc   |   Score   |     Rating
        ___________________________________

          A   |         90 %  |     23      |      Above Average
        ___________________________________

          B   |     64 % |      7       |       Below Average
        ___________________________________

        and so on.

        The field Perc is a Calculated Member and can be assumed
something like this ( [A] , [Time].[2003].[Jan] )

        I now have a table in my Database called as DIM_SCORE

Eg.

            Key    |     Start    |      End     |    Score   |  Rating
        _________________________________________________

              1      |      91      |     100        |    25
              |   Excellent
            __________________________________________________

          2      |      81      |     90          |   23        |
          Above Average
        ___________________________________________________

            . .. ...
            . .. ...
            . .. ...
        ___________________________________________________

         3      |      61       |    70          |    7         |
         Below Average
            ___________________________________________________

The puzzling part is that I need to figure out which range ( Start : End
) , the Perc value falls in and need to display Score and Desc
correspondingly.

i.e as the Perc value 90 falls in the range 81:90 , it must display a
  score of 23 and Rating as ABove Average. The values must be fetched
  dynamically from the table.

Of COurse, this can be hardcoded in the Calc Member, but is there anyway
to do it dynamically

--
Posted via http://dbforums.com

2. Returning records from SP

3. Help with puzzling DB problem

4. Error 3170 - Couldn't load instllable ISAM.

5. Solve this Paradox puzzle...! (a real puzzle)

6. documentation OraOLEDB.Oracle

7. Date puzzle has me puzzled

8. Returning keyset/dynamic recordsets when executing parameterized queries against Stored Procedures

9. Problem in OLAP/Problemas en el OLAP

10. Help: Error saving OLAP cube with OLAP Manager

11. Writeback Problems in Olap !!!! Please help

12. OLAP/Excel 2000 Connection Problem HELP!

13. Need help - OLAP 2K date format change problem