dbTalk Databases Forums  

Survey categories

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


Discuss Survey categories in the microsoft.public.sqlserver.olap forum.



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

Default Survey categories - 03-24-2006 , 11:34 AM






Hi. I've seen some discussion about tracking survey data here but couldn't
get a grip on how to do this. Our fact table has Q1Answer (possible answers
1-5) that is llinked to dimension d_Answer that has values 1-5 in it so I can
get the counts for each answer. That works fine.

I'm having trouble with the "satisfied" range, where a respondant answered 4
or 5. I thought this would work as a calculated measure:
[Answer].[Answer Val].&[4] or [Answer].[Answer Val].&[5]
Nope. Maybe it does a bitwise or. Anyway, I'm probably missing something
straightforward.

TIA,
Ken Trock




Reply With Quote
  #2  
Old   
Deepak Puri
 
Posts: n/a

Default Re: Survey categories - 03-24-2006 , 06:08 PM






Typically, client tools like Excel pivot tables will use the MDX
Aggregate() function, like:

Member [Answer].[Satisfied] as
'Aggregate({[Answer].[Answer Val].&[4],
[Answer].[Answer Val].&[5]})'


- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***

Reply With Quote
  #3  
Old   
--CELKO--
 
Posts: n/a

Default Re: Survey categories - 03-24-2006 , 07:02 PM



Quote:
I've seen some discussion about tracking survey data here but couldn't get a grip on how to do this.
Have you thgouth about gettign a survey tool, like RaoSoft? Much
better to drive nails with a hammer that a squid.



Reply With Quote
  #4  
Old   
ktrock
 
Posts: n/a

Default Re: Survey categories - 03-27-2006 , 12:10 PM



Thanks Deepak. Actually my syntax works too. Was using the wrong set. Takes
some getting used to.

Ken

"Deepak Puri" wrote:

Quote:
Typically, client tools like Excel pivot tables will use the MDX
Aggregate() function, like:

Member [Answer].[Satisfied] as
'Aggregate({[Answer].[Answer Val].&[4],
[Answer].[Answer Val].&[5]})'


- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***


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.