?
Solved

Making calculations in a SSIS package

Posted on 2006-07-06
5
Medium Priority
?
656 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Suggested Courses

765 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