dbTalk Databases Forums  

begginer: i need to get columns from keys in rows , that's OLAP ?

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


Discuss begginer: i need to get columns from keys in rows , that's OLAP ? in the microsoft.public.sqlserver.olap forum.



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

Default begginer: i need to get columns from keys in rows , that's OLAP ? - 11-18-2005 , 08:09 AM






hi
i think i begin to understand...
i need to obtain columns
from multi-key rows
can olap help me ?

example
starting with that ...

YEAR | PRODUCT | TOTAL
--------------------------------
2005 | A | 190
2005 | B | 200
2006 | A | 180
2006 | B | 210
2006 | C | 300

i need to get this

Quote:
A B C
2005 | 190 200 --
2006 | 180 210 300

thanks

--
atte, Hernán




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

Default Re: begginer: i need to get columns from keys in rows , that's OLAP ? - 11-18-2005 , 09:48 AM






Yes, you can make dimensions "Time" with levels Year, Month, Day and
"Product". Make Total as a Measure.

Then a simple MDX query like

select {[Time].[Year].members} on rows,
{[Product].members} on columns
from <your cube name>

would give you the desired result.

HTH

Milind


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.