Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SSIS


SSIS

Author
Message
Koen Verbeeck
Koen Verbeeck
SSCoach
SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)

Group: General Forum Members
Points: 16558 Visits: 13210
wanox (7/26/2013)
Koen, is this data sufficient?


I'll have a look later. I have to go to work now :-)



How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?

Member of LinkedIn. My blog at SQLKover.

MCSA SQL Server 2012 - MCSE Business Intelligence
John Mitchell-245523
John Mitchell-245523
SSCertifiable
SSCertifiable (7.5K reputation)SSCertifiable (7.5K reputation)SSCertifiable (7.5K reputation)SSCertifiable (7.5K reputation)SSCertifiable (7.5K reputation)SSCertifiable (7.5K reputation)SSCertifiable (7.5K reputation)SSCertifiable (7.5K reputation)

Group: General Forum Members
Points: 7542 Visits: 15175
You haven't shown what the data in your table looks like, but I think I can picture it.

It looks as if you have three options:

(1) Pivot in Excel then load directly into the table
(2) Pivot as part of your data flow and load directly into the table
(3) Load into a staging table, then do a T-SQL PIVOT into your table

John
wanox
wanox
SSC Rookie
SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)

Group: General Forum Members
Points: 35 Visits: 226
I cannot pivot in excel (source data).
I have tried to pivot as part of my data flow and have not been successful. Can you help me out here please
The data in the table looks like this:
ID Date Value
10 getdate() 1.357

The ID is generated by running a query to select name from another table where name matches the column name on the spreadsheet.
Koen Verbeeck
Koen Verbeeck
SSCoach
SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)

Group: General Forum Members
Points: 16558 Visits: 13210
wanox (7/26/2013)
I cannot pivot in excel (source data).
I have tried to pivot as part of my data flow and have not been successful. Can you help me out here please
The data in the table looks like this:
ID Date Value
10 getdate() 1.357

The ID is generated by running a query to select name from another table where name matches the column name on the spreadsheet.


Can you post a few more lines of sample data and the desired output?



How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?

Member of LinkedIn. My blog at SQLKover.

MCSA SQL Server 2012 - MCSE Business Intelligence
wanox
wanox
SSC Rookie
SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)

Group: General Forum Members
Points: 35 Visits: 226
This is a sample of data destination:
SourceRateID RateDate EnteredDateTime Value
1 7/25/2013 00:00.0 0.0005
2 7/25/2013 00:00.0 0.0013
3 7/25/2013 00:00.0 0.0027
4 7/25/2013 00:00.0 0.0037
5 7/25/2013 00:00.0 0.0042
10 7/25/2013 00:00.0 0.225
11 7/25/2013 00:00.0 0.225
12 7/25/2013 00:00.0 0.225
13 7/25/2013 00:00.0 0.225
14 7/25/2013 00:00.0 0.225

This is sample of source excel file:
onemoaccept twomoaccept threemoaccept sixmoaccept twelvemoaccept cadprime twoyrtreas
1.22 1.2475 1.275 1.395 1.6 #NAME? 1.15


Thanks
wanox
wanox
SSC Rookie
SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)

Group: General Forum Members
Points: 35 Visits: 226
This is the correct source file sample:
RateDate onemoaccept twomoaccept threemoaccept sixmoaccept
7/24/2013 1.22 1.2475 1.275 1.395

I'll try pivoting this file, now that I have a RateDate column and keep you posted.

Thanks,
wanox
wanox
SSC Rookie
SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)

Group: General Forum Members
Points: 35 Visits: 226
Pivoting does not seem to be working for me. Can someone please assist me
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search