question

neilsja-9416 avatar image
0 Votes"
neilsja-9416 asked neilsja-9416 answered

Columns needed after Aggregate Function

Hi All

I have flat file of financial data that is on a .csv file.

I have had to group the data by: CompanyID, EmployeeID and JournalAccount using the aggregate function. I am using the sum on Journal Net of Total Adjusted Reclaim Tax and Report Entry Tax Reclaim Trans Adjusted Amount

That is working great but I have a number of other columns I need to output to the export file, but it seems when using an aggregate function, you are limited to just those columns, which means I cannot do a corrected output file.

Initial Import File:
Employee ID
Company
Lakeview Journal
CORP C/CARD
Journal Account Code
Report Name
Journal Net of Total Adjusted Reclaim Tax
Report Entry Tax Reclaim Trans Adjusted Amount
Report Entry Expense Type Name
Report Entry Description

After the aggregate, the only columns I can output are:
EmployeeID
Company
JournalAccount
Journal Net of Total Adjusted Reclaim Tax
Report Entry Tax Reclaim Trans Adjusted Amount

sql-server-integration-services
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

neilsja-9416 avatar image
1 Vote"
neilsja-9416 answered

I resolved the issue by moving the data in to a SQL table, and then manipulated the data as required and pushed it to a flat file.

Thank you for the help.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

RyanAbbey-0701 avatar image
0 Votes"
RyanAbbey-0701 answered

Do a merge join post aggregation to bring the other columns back in

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ZoeHui-MSFT avatar image
0 Votes"
ZoeHui-MSFT answered

Hi @neilsja-9416,

Why not add the other data columns first and then use Aggregate Transformation.

Regards,

Zoe


If the answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Hot issues October

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.