RRinTetons
IS-IT--Management
We have a vendor supplied SSAS OLAP implementation from the same vendor that does our primary OLTP application. It's missing a dimension that I need for many reporting challenges. We use Excel for most interface needs. I have several ways to get values that comprise the missing dimension but I am a newbie at MDX. I do have a substantial SQL background.
The hierarchy is specific to the ski industry (yep, that's me, IT guy at a ski resort . Our reporting and analysis all swing on the concept of a Season, Season Week and Season Day where the values are based on a season start date - in our case the last Saturday in November. Counting from that date each week (Sat - Friday) is numbered 1 - N to the next year's last Saturday in November with a stub week at the end. Season days are numbered sequentially to the Friday prior to the next year's last Saturday in November.
Most built in date routines trip over the stub week at the end of the season year, not the calendar year, so I end up having to spin my own; PITA. The simplest way I can think of is some sort of a table driven function that just looks up the damn value in a db table based on the date - ugly, but I'm not trying for elegance here.
Any thoughts on good ways to do this sort of thing? I'm coming up to speed on MDX as quickly as I can, but it's a big book to read. I know there will be more so a generalized approach is desired, I can work out the details. For my own Big Hammer approach with the look up I need to know if I can somehow embed a 'regular' SQL query in an MDX expression.
-
Richard Ray
Jackson Hole Mountain Resort
The hierarchy is specific to the ski industry (yep, that's me, IT guy at a ski resort . Our reporting and analysis all swing on the concept of a Season, Season Week and Season Day where the values are based on a season start date - in our case the last Saturday in November. Counting from that date each week (Sat - Friday) is numbered 1 - N to the next year's last Saturday in November with a stub week at the end. Season days are numbered sequentially to the Friday prior to the next year's last Saturday in November.
Most built in date routines trip over the stub week at the end of the season year, not the calendar year, so I end up having to spin my own; PITA. The simplest way I can think of is some sort of a table driven function that just looks up the damn value in a db table based on the date - ugly, but I'm not trying for elegance here.
Any thoughts on good ways to do this sort of thing? I'm coming up to speed on MDX as quickly as I can, but it's a big book to read. I know there will be more so a generalized approach is desired, I can work out the details. For my own Big Hammer approach with the look up I need to know if I can somehow embed a 'regular' SQL query in an MDX expression.
-
Richard Ray
Jackson Hole Mountain Resort