?
Solved

Making calculations in a SSIS package

Posted on 2006-07-06
5
Medium Priority
?
658 Views
Last Modified: 2012-05-05
I'll try to explain this best I can.  I have a OLE DB Source that I run to an Aggregate that I then run to an OLE DB Destination.  I map the fields I want from the source to the destination and that's that.

I have two fields in particular from the source connection named RATE and FACE.  Both fields are DT_R8 datatypes.  Whatever that means.  They both are basically decimal values carried to the 4th digit.  (00.0000).  

Everything works very well getting my data out of the source and into the destination, however, somewhere along the path I need to do a calculation on the RATE and FACE fields.  The RATE field is already being mapped to the DECRATE field in the destination table and the RATE is already being mapped to the DECRATE field in the destination table.

I need to multiply the RATE field with the FACE field though and insert that into another field in the destination table called DECCERTBALDUE and I don't know how.

I am just beginning to learn to use SQL Server Business Inteligence so I really not very good with it yet.

ANY help is welcome.

Thanks,
0
Comment
Question by:lostboyinsofla
  • 3
  • 2
5 Comments
 
LVL 12

Expert Comment

by:Einstine98
ID: 17055119
you need to create a calculated field and map it to your destination in SSIS
0
 

Author Comment

by:lostboyinsofla
ID: 17055174
How do I do that?  I'm really just beginning with SSIS and don't know much of squat yet.
0
 
LVL 12

Accepted Solution

by:
Einstine98 earned 2000 total points
ID: 17055187
in the data flow section in the tools on the right-hand side there should be a "dervied column" object... use that...
0
 

Author Comment

by:lostboyinsofla
ID: 17055262
Where in the hierchy do I put it?  Right now under Data Flow I have:
OLE DB Source
Aggregate
OLE DB Destination
0
 
LVL 12

Expert Comment

by:Einstine98
ID: 17055510
after or before the aggregate depending on when do you want your data transformed...
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Windocks is an independent port of Docker's open source to Windows.   This article introduces the use of SQL Server in containers, with integrated support of SQL Server database cloning.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question