dbTalk Databases Forums  

Getting YTD values in an Excel speadsheet

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss Getting YTD values in an Excel speadsheet in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Suresh Kumar
 
Posts: n/a

Default Getting YTD values in an Excel speadsheet - 06-08-2004 , 03:25 PM






I have a cube that has the following:
[Measures].[Leads] , [Measures].[Sales]
The dimensions are [Publication] and [Date]

Right now I have the users access an Excel spreadsheet that is attached to
an OLAY cube as described above.
The users would also like to get [YTD Leads] and [YTD Sales] along with the
existing measures.

Can someone point me the approach I should take so that they can get all
this additional YTD info in the current spreadsheet?

Thanks,
S.Kumar






Reply With Quote
  #2  
Old   
AshVsAOD
 
Posts: n/a

Default Re: Getting YTD values in an Excel speadsheet - 06-08-2004 , 06:12 PM






Here is the MDX for YTD...

Create two calculated Members in your cube.

Sum( YTD(), [Measures].[Leads] )
Sum( YTD(), [Measures].[Sales] )
"Suresh Kumar" <skumarNoSpamATpcdiDOTcom> wrote

Quote:
I have a cube that has the following:
[Measures].[Leads] , [Measures].[Sales]
The dimensions are [Publication] and [Date]

Right now I have the users access an Excel spreadsheet that is attached to
an OLAY cube as described above.
The users would also like to get [YTD Leads] and [YTD Sales] along with
the
existing measures.

Can someone point me the approach I should take so that they can get all
this additional YTD info in the current spreadsheet?

Thanks,
S.Kumar








Reply With Quote
  #3  
Old   
Suresh Kumar
 
Posts: n/a

Default Re: Getting YTD values in an Excel speadsheet - 06-09-2004 , 08:29 AM




Thanks... That did it.

"AshVsAOD" <.> wrote

Quote:
Here is the MDX for YTD...

Create two calculated Members in your cube.

Sum( YTD(), [Measures].[Leads] )
Sum( YTD(), [Measures].[Sales] )
"Suresh Kumar" <skumarNoSpamATpcdiDOTcom> wrote in message
news:%232qILbZTEHA.3988 (AT) tk2msftngp13 (DOT) phx.gbl...
I have a cube that has the following:
[Measures].[Leads] , [Measures].[Sales]
The dimensions are [Publication] and [Date]

Right now I have the users access an Excel spreadsheet that is attached
to
an OLAY cube as described above.
The users would also like to get [YTD Leads] and [YTD Sales] along with
the
existing measures.

Can someone point me the approach I should take so that they can get all
this additional YTD info in the current spreadsheet?

Thanks,
S.Kumar










Reply With Quote
  #4  
Old   
Suresh Kumar
 
Posts: n/a

Default Re: Getting YTD values in an Excel speadsheet - 06-09-2004 , 08:47 AM



Ash,
There is an additional request from the users.

They would like to know if the cube would present the spreadsheet in the
ascending order of a calculated field called [Cost per Sales].


"AshVsAOD" <.> wrote

Quote:
Here is the MDX for YTD...

Create two calculated Members in your cube.

Sum( YTD(), [Measures].[Leads] )
Sum( YTD(), [Measures].[Sales] )
"Suresh Kumar" <skumarNoSpamATpcdiDOTcom> wrote in message
news:%232qILbZTEHA.3988 (AT) tk2msftngp13 (DOT) phx.gbl...
I have a cube that has the following:
[Measures].[Leads] , [Measures].[Sales]
The dimensions are [Publication] and [Date]

Right now I have the users access an Excel spreadsheet that is attached
to
an OLAY cube as described above.
The users would also like to get [YTD Leads] and [YTD Sales] along with
the
existing measures.

Can someone point me the approach I should take so that they can get all
this additional YTD info in the current spreadsheet?

Thanks,
S.Kumar










Reply With Quote
  #5  
Old   
AshVsAOD
 
Posts: n/a

Default Re: Getting YTD values in an Excel speadsheet - 06-09-2004 , 05:29 PM



Here is an example from the Foodmart database... Basically just use the
ORDER and the BDESC commands.

SELECT { [Time].&[1997] } ON COLUMNS ,

{ ORDER( { [Product].[Product Family].&[Drink].&[Alcoholic Beverages].&[Beer
and Wine].&[Wine].&[Top Measure].CHILDREN }, ( [Time].&[1997] ), BDESC ) }
ON ROWS

FROM [Sales]

WHERE ( [Measures].[Unit Sales] )

Good luck!



"Suresh Kumar" <skumarNoSpamATpcdiDOTcom> wrote

Quote:
Ash,
There is an additional request from the users.

They would like to know if the cube would present the spreadsheet in the
ascending order of a calculated field called [Cost per Sales].


"AshVsAOD" <.> wrote in message
news:ueQ9H6aTEHA.3660 (AT) tk2msftngp13 (DOT) phx.gbl...
Here is the MDX for YTD...

Create two calculated Members in your cube.

Sum( YTD(), [Measures].[Leads] )
Sum( YTD(), [Measures].[Sales] )
"Suresh Kumar" <skumarNoSpamATpcdiDOTcom> wrote in message
news:%232qILbZTEHA.3988 (AT) tk2msftngp13 (DOT) phx.gbl...
I have a cube that has the following:
[Measures].[Leads] , [Measures].[Sales]
The dimensions are [Publication] and [Date]

Right now I have the users access an Excel spreadsheet that is
attached
to
an OLAY cube as described above.
The users would also like to get [YTD Leads] and [YTD Sales] along
with
the
existing measures.

Can someone point me the approach I should take so that they can get
all
this additional YTD info in the current spreadsheet?

Thanks,
S.Kumar












Reply With Quote
  #6  
Old   
Suresh Kumar
 
Posts: n/a

Default Re: Getting YTD values in an Excel speadsheet - 06-09-2004 , 06:29 PM



How do I incorporate this into the cube as one of the measures?
Can this be made into a calculated field?
Thanks in advance
S.Kumar

"AshVsAOD" <.> wrote

Quote:
Here is an example from the Foodmart database... Basically just use the
ORDER and the BDESC commands.

SELECT { [Time].&[1997] } ON COLUMNS ,

{ ORDER( { [Product].[Product Family].&[Drink].&[Alcoholic
Beverages].&[Beer
and Wine].&[Wine].&[Top Measure].CHILDREN }, ( [Time].&[1997] ), BDESC ) }
ON ROWS

FROM [Sales]

WHERE ( [Measures].[Unit Sales] )

Good luck!



"Suresh Kumar" <skumarNoSpamATpcdiDOTcom> wrote in message
news:uzhBShiTEHA.3336 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
Ash,
There is an additional request from the users.

They would like to know if the cube would present the spreadsheet in the
ascending order of a calculated field called [Cost per Sales].


"AshVsAOD" <.> wrote in message
news:ueQ9H6aTEHA.3660 (AT) tk2msftngp13 (DOT) phx.gbl...
Here is the MDX for YTD...

Create two calculated Members in your cube.

Sum( YTD(), [Measures].[Leads] )
Sum( YTD(), [Measures].[Sales] )
"Suresh Kumar" <skumarNoSpamATpcdiDOTcom> wrote in message
news:%232qILbZTEHA.3988 (AT) tk2msftngp13 (DOT) phx.gbl...
I have a cube that has the following:
[Measures].[Leads] , [Measures].[Sales]
The dimensions are [Publication] and [Date]

Right now I have the users access an Excel spreadsheet that is
attached
to
an OLAY cube as described above.
The users would also like to get [YTD Leads] and [YTD Sales] along
with
the
existing measures.

Can someone point me the approach I should take so that they can get
all
this additional YTD info in the current spreadsheet?

Thanks,
S.Kumar














Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.