How to Load multiple excel sheets data to the same table in SSIS? - tsql

I am bit confused on my business scenario and need your's valuable suggestion to go ahead .
I got one excel work book template from the client and it is having 8 sheets and 250 columns and each sheet having different columns and there is no relationship from one sheet to other sheet in terms of column names (one sheet has 60 columns with 5000 rows and other sheet has 10 columns with 200 rows ) as well as data also .
I Need to load this data into single table using SSIS ?
Our client confirmed there will not be change in their inputs ?

Here are steps for ur scenario
1- create a table which has all the columns in excel sheets. If column names are repeating on multiple sheets. You will have one time in your table.
1- bring data flow task. Bring excel source. Make connection to ur excel. Choose sheet1 and then bring oledb destination and map input columns to table. If the column names in table will b same in ur sheet. They will map automatically.
2- bring second data flow. Bring excel souce. Use existing excel source n choose sheet2. Get oledb dest n map to ur destination table.
Get third data flow n load third sheet. Repeat for ur all sheets.

Related

tableau, excel workbook, three worksheets, want data sources column in union

I have a question on Tableau Desktop. I have an excel file with three tabs: Applications, Shared Drives, Sharepoint_Libraries. I would like to union all of these tables. I would like a column called Data Source with the below values. So from Applications excel file, I would like a Data Source column in the Union which says Applications. So from Shared Drives excel file, I would like a Data Source column in the Union which says Shared Drives. Lastly, from Sharepoint_Libraries excel file, I would like a Data Source column in the Union which says Sharepoint_Libraries. How can I do this in Tableau? Do I need to edit the source excel files and add the Data Source column in each file? Or, can I create a calculated field called Data Source and use a formula to populate this information?
Data Source
Applications
Shared Drives
Sharepoint_Libraries
Tableau has a "merged mismatched fields" option for this situation.
So..
open Desktop
connect to the Excel file
drag over the Applications sheet
drag over the Shared Drives sheet and position it just below Applications until you see the "union" box appear then release your mouse button
repeat for Sharepoint Libraries
in the preview window (below) you will see the three different fields.
highlight the three fields that you want to merge
right-click and choose Merge Mismatched Fields.
Then you can rename the field accordingly :)

Creating chart of only certain rows

Using Google Sheets, is there a way to create charts for only certain rows?
I have created some reports, but when the source list is sorted differently the report breaks because of using the data source as 'SourceTab'!A2:X2. In the source tab I have about 60+ rows, but only want to report on certain rows.
I thought I could add a column to each row to create groupings, then in the chart call those groupings to create the reports.
add a column to each row to create groupings sounds a good idea. Just create your chart from all available data then filter your data to select only the rows flagged in that column.
you can QUERY() them out like this:
=QUERY({2:2; 4:5; 8:8}, "select *", 0)

I have Crystal report and need to use results from parameter based on one table to run a parameter on another table

My SQL Table contains RmaNumber, RmaLineNumber and Warehouse, and then a whel lot of other details.
We want to filter (using a parameter) on warehouse to produce a list of RMANumbers and RMALinenumbers to choose from. The problem is that when I include the RmaLineNumbers it makes the dataset to large to display in Crystal Reports.
So I tried splittin the data into 2 tables - the first table contains the Warehouse and RMANumber. The second table contains the RmaNumber and RmaLine Number. The idea is that I put a parameter on the first table to select the warehouse and it returns a list of RMANumbers (a manageable size data set)Then the user will select which RMANumbers they want and from that list I want to filter (parameter) From the second table to see the line numbers (a smaller dataset) then the report will display the details based on the line number chosen. Is what I am trying to do possible in Crystal? is there another way around the issue of the dataset being to large?

Transpose columns in another sheet to rows via Data > Validity dropdown

I have a collection of addresses on one LibreOffice Calc sheet (7 columns, 1st name, 2nd street and so one) and want to create an invoice template on another sheet.
I know how to retrieve and transpose a known row - the solution on this other question explains that: Transpose column on one sheet to row on another, with linking
However, this does not seem to work if I use Data > Validity to fill the first cell in the address area (7 cells below each other).
What I am basically trying to accomplish is a dropdown in the first cell where I select the name and it automatically retrieves the address from the other sheet into the cells below.
Is this possible or am I overthinking here?
I suggest:
Name the data in your first column (eg CName)
Name your array of data (eg Clients)
Set the Source for Validity Criteria to CName
Assuming the validation is in A1, in A2 and copied down to suit:
=VLOOKUP(A$1,Clients,ROW()-0,0)
The -0 is not required if the validation is in Row1 but is where an offset should be made if not.

How to combine multiple excel data into one excel with all sheets?

Actually I have a list of customers from all the countries in one sheet name "ALL".
Problem: I have to crate separate sheets for group of countries like for USA sheet name will be USA and for Australia,Germany and Switzerland sheet name will be Central_Region output will be like below image.
What I have tried till now :- I used tFilterRow component and I have got all the separate excel files group by countries . now trying to combine in one file.
For Example : I have 5 excel workbook files each has one sheet like excel1.xls has sheet "USA" other excel2.xls has sheet "Canada" and same other 3 are in same way.
Now I want to generate a single excel workbook which will have all the sheets like "USA", "Canada" and all other sheets from other excels.
I tried using iUnite but it did not help it just append all the sheets data into one sheet.Like below image
Download this add-ins
Open one your excel file and then open this add-ins file (also you can install that)
when you open this file, select Enable Macro.
Go to DATA tab on excel file and select RDB Merge add-in.
set properties and push Merge Button.
With this, your excel fills will merge in one sheet.
If you can't know in which order row will appear, you could store your data in csv files for each country.
Then you can add each csv file into a separate sheet on the Excel file using Write after.
If rows are coming in the rigth order, like all USA then Canada etc . . . you can directly use Write after in your ExcelOutput behind your tFilter but i highly suppose this is not the case.
If you have same structure excel file with different in sheet name then you have to make job like this.
tFileList---tFileInputExcel-----tMap---tFileOuputExcel
Set source directory where you get all the files to the tFileList component.
Use global varibale which hold "file with path" information and assign to the file name text box of tFileInputExcel component.
In select Sheet box assign index instead sheet name.
check Append property of tFileOuputExcel component you can merge all files in single one.
Note: in tMap you can add transformation or make changes in column sequence of output.