Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating a Data Set in Report Studio?

Status
Not open for further replies.

KristieLee1

Technical User
Jul 13, 2009
76
US
Is it possible to create a data set in Report Studio?

Example:

Region
1
2
3
4
5
6
Region's 1-3 will be in Group 1, Region 4-6 Group 2.

I thought there was someplace I could create my own data set? Is that only in Analysis studio?

Thank you!
 
Oh...I forgot. I want to display them grouped together, so using a prompt to show group 1 or group 2 wont work, as I need to see both groups at the same time.

Sorry for the confusion. Thank you.
 
Sure , create a new dataitem [Group] like:

Code:
CASE 
WHEN
[Region] in ('1','2','3') THEN 'Group1'
WHEN
[Region] in ('4','5','6') THEN 'Group2'
ELSE 'no Group'
END


Ties Blom

 
I was so happy when the data item validated, only to have my dreams crushed when the report threw the following error:

Invalid coercion from 'memberSet' to 'string' for '[Region]' in 'case when [Region] in ('R01D02','R01D03') then 'Group 1' when [Region] in ('R01D04','R01D05') then 'Group 2' else 'No Group' end'.

I read somewhere that I need to create a set expression? Not sure how to do that either. Is this because of a data type issue?

Thank you TB...for being a super genius!!!
 
Sorry, I was expecting a relational package. You must be working with a dimensional one..

Syntax should be different then, have to test this..

Ties Blom

 
Yes...dimensional...sucks. I'm really struggling with this. Thanks for any help you can provide :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top