Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


rows to columns

rows to columns

rows to columns

Hi! I really cant figure this out. Help Please.

I have data:

Item    Class       Name
  1       A        Name1  
  1       B        Name2
  1       C        Name3
  2       A        Name4
  2       B        Name1
  2       C        Name6
  3       A        Name3
  3       B        Name4
  3       C        Name2

How do we create an attribute per Item/Class so that we can display the data in this format:

ITEM     Class A      Class B    Class C
  1        Name1       Name2      Name3
  2        Name4       Name1      Name6
  3        Name3       Name4      Name2


RE: rows to columns

Create a fact from Name. Use it as a Metric.
The definition of your metric should be Max(Name).

RE: rows to columns

You probably don't need to create a fact if the report mockup you put out is actually real (and then follow iolaper's solution with max(name@desc) instead of max(name)).
If you have OLAP Services, you probably can do that in a derived metric too.

2 cents,

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close