• subscribe
March 21, 2001 12:00 AM

March MDX Puzzle Solution Revealed

SQL Server Pro
InstantDoc ID #19848
Downloads
19848.zip

Using the FoodMart 2000 Sales cube, write a query that shows Unit Sales for each drink product department for each quarter of 1997. Use cell properties to highlight in red the Unit Sales values that dropped from the previous quarter.

The solution, which Listing A shows, uses a calculated cell that applies to all Unit Sales values where the previous time value is greater than the current time value. If the values meet this condition, Analysis Services changes the FORE_COLOR cell property to red. The query uses the CELL PROPERTIES keywords to request that the FORE_COLOR property be returned with the query result.



ARTICLE TOOLS

Comments
    There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here