Click here to Skip to main content
15,891,909 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI,
I have 3 columns:

Date           Type  Item 
1/1/2015         A     X
3/2/2015         B     X
1/6/2015         A     Y
3/7/2015         B     Y



And I want to show table with:
DateA          Type          DateB        Type      Item
1/1/2015          A          3/2/2015         B        X
1/6/2015          A          3/7/2015         B        Y

And question is HOW? :)
Thanx

[edit]Code block added - OriginalGriff[/edit]

What I have tried:

SSRS 5 columns from 3 columns
Google, Youtube, Forums
Posted
Updated 21-Mar-16 19:01pm
v8
Comments
CHill60 21-Mar-16 4:37am    
It looks like you are trying to PIVOT on more than one column. If so then these articles might help
Pivot two or more columns in SQL Server 2005[^]
Client Side Multi-Column Dynamic Pivot[^]
The example doesn't really make it clear which you are trying to pivot on though - can Type *only* be A or B, can Item *only* be X or Y?

1 solution

You are trying to PIVOT the data. Either get such data from the database, or use the following link if you want to do it in SSRS:
reporting services - SSRS Pivoting a column - Stack Overflow[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900