• 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
  • SP1?
    I know there is a SP1 for SQL 2008 R2 available....and there is a "feature pack" as well... ...
  • SQL database mirroring
    I have SQL Server 2008 R2 Enterprise 64bit on Windows 2008 R2 Enterprise 64bit.  Each SQL Server has...
  • Dell Compellent Disk Drive
    Does anybody has experience with Dell Compellent Disk Drive? Basically, this system manages all disk...
  • Sql server performance tuning
    I need to find a tool that help me to optimize sql server,queries,improve the performance and solve ...