January 5, 2009 at 3:39 am
hi
i'm using SSAS 2008.
i want to include prevmember column on the following query.
so that i'll get [quantity sold] for [Day Week Id].&[0728] also.
(i.e.Prev year same period)
SELECT
NON EMPTY { [Measures].[Quantity Sold] } ON COLUMNS,
NON EMPTY
{ ([Client Tbl Dim Calendar].[Day Week Id].[Day Week Id].ALLMEMBERS *
[Client Tbl Dim Product].[Category].[Category].ALLMEMBERS *
[Client Tbl Dim Stores].[Store Name].[Store].ALLMEMBERS ) }
DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS
FROM ( SELECT ( { [Client Tbl Dim Stores].[Store].&[BigW - Altona Meadows] } ) ON COLUMNS
FROM ( SELECT ( { [Client Tbl Dim Product].[Category].&[Mens Belts] } ) ON COLUMNS
FROM ( SELECT ( { [Client Tbl Dim Calendar].[Day Week Id].&[0828] } ) ON COLUMNS
FROM [DSVClientAdmin])))
Thanks,
Regards
viji
January 6, 2009 at 12:54 pm
Create a calculation as in:
[Code]
With
Member [Prev Quantity Sold] as ( [Quantity Sold], ([Client Tbl Dim Calendar].[Day Week Id].CurrentMember.PrevMember ), Format_String= "#,#"
SELECT
{ [Quantity Sold], [Prev Quantity Sold] } ON COLUMNS,
etc.
[/Code]
Reminder: The first member doesn't have a previous member, so you'll have to either eliminate it from your set, or beef up your calculation syntax.
January 6, 2009 at 8:21 pm
Thanks, the same kind a query got worked.
Regards
Viji
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply