![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
| From: Tim Harris (tharris (AT) oneprice (DOT) com) |
|
Hi, I've been using Analysis services with Pro Clarity as a frontend for some time now but have never had to write any serious MDX as yet, how do I get a view to default to "todays" date, Cheers, Steve. |
|
-----Original Message----- I have several ProClarity Briefing Books that use a Date Dimension on the Rows and an Hours Dimension on the Columns and sales people analyze two or three days at a time for sales by hour. I would like to automatically load the current and two days past when the User fetches the Briefing book. I am going to basically modify a My Item Set (A ProClarity construct) that has three days selected so that it will provide information to an MDX expression that will cause the whole fetch to load the current date and the last two. I have been experimenting with the Filter and Tail functions, but haven't been able to get it right yet. Here is a basic expression that gives me the hours, but I have been unable to figure out how to use the Filter and then the Tail functions to return just the current and last two days. SELECT NON EMPTY { [Hours].[All Hours].CHILDREN } ON COLUMNS , NON EMPTY [Date].[All Date].Children ON ROWS FROM [HAS 70 Day Test Cube] WHERE ( [Measures]. [Revenue] ) Basically what I need is a good example of how the Filter and Tail functions can work together. Thanks for the help. CB . |
![]() |
| Thread Tools | |
| Display Modes | |
| |