Export data into different sheets in an excel spreadsheet using Pentaho Kettle - spreadsheet

I want to export data from database tables into different sheets of an excel spreadsheet. For example, employee data from a database table into sheet1 of the spreadsheet, department data into sheet2 of the spreadsheet, and employee_department data (joing the first two tables) into sheet3 of the spreadsheet.
How can i achieve this in Pentaho Kettle? I noticed that the Excel Output in Kettle has a content tab where you can select a sheet, but this does not seem to work. I tried storing data from different tables into different excel files sharing the same name, but naming the sheet option different e.g employee data into companydata.xls and choosing sheet1, department data into companydata.xls and choosing sheet2, and employee_department into companydata.xls and choosing sheet3.
Thank you in advance.

Try the "Excel Writer" step instead. This is a much more flexible step for writing to Excel files - and is ideal for situations like this.
http://type-exit.org/adventures-with-open-source-bi/2010/12/using-the-excel-writer-step/

Related

Can I copy an ENTIRE Excel sheet and paste to another Excel spreadsheet using Power Automate. (Sharepoint)

I am working from SharePoint.
I would like to COPY AN ENTIRE Excel Sheet-A from Spreadsheet A and Paste it into another Sheet, Sheet-B on Spreadsheet B using Microsoft Power Automate.
Some important things to note:
Sheet-A does not have column names (I know).
There are no Key values or Key Columns. Just random information.
Is there a way to go about this?
Unfortunately PowerAutomate really wants you to have your information in a table if you want to move or manipulate the data and wouldn't it be so useful to have a "Duplicate Sheet" function and copy n paste of individual cells.
If your sheet with the random data happened to be in a single large table, then this may work by apply to each item when navigating the underlying table.

How can i verify excel data in multiple database(db2) using selenium webdriver?Is it possible or not?

Assume that I have uploaded an excel sheet using import button and in my excel sheet there are 100 columns and 100 columns are stored in different tables(DB2--store in 6 different tables). How can I verify that stored data are the same as my excel sheet's data?

Excel VBA - How to copy rows based on a criteria from multiplesheets into one sheet

I've have a spreadsheet with multiple sheets and a need to copy specific rows based on a criteria (a specific month). So the idea is to be able to loop through the other sheets and copy rows (for example all rows with June in column 1) onto the sheet "Consolidated Data" from all the country files without touching the "Do not include" sheet.
Thank you!
You have to be more specific - do all the country pages look the same? How are you indicating the criteria (i.e. June), and what do you want the consolidated data tab to look like?

generate a hyperlink in sheet linking to matched data found in a different sheet

I have two different sheets in a workbook with data, all of this data is organized by Site ID's. What I want to do is use these site ID's to create a hyperlink in one of the data sheets that when clicked takes the user to the corresponding Site ID in the other sheet. The sheet name where I want to write the hyperlinks to is called "Report_Manual" and I want to write hyperlinks down every row down the first column. The sheet that I am hyperlinking to is called "Data". The premise Ids are located in column C for sheet "Report_Manual" and column K in sheet "Data". Below is an a ttempt of what I was trying to generate in excel for a single cell formula however the issue I ran into for this formula is that the Premise ID's in sheet "data" are variant data type while the Premise ID's in sheet "Report Manual" are integer data type. This makes even a simple formula like the one below not get any matches as the data types being matched aren't the same.
=HYPERLINK("#"&CELL("address",INDEX(Data!K3:K580001,MATCH(C3,Data!K3:K580001,0))),C3)
If anyone has any idea of a macro to solve this issue that would be extremely helpful.
If the IDs in "Data" are text, try changing your match lookup value to text:
=HYPERLINK("#"&CELL("address",INDEX(Data!K3:K580001,MATCH(TEXT(C3,0),Data!K3:K580001,0))),C3)

How to rearrange data from excel?

I have data in a spreadsheet which I have to upload in sql. The problem is that this data is quite crude. I need to rearrange the sheets in the excel file in terms of their relation with eachother. The first sheet has master data a colum of this sheet is to be linked to data in the other sheet. All I have is a sheet in which data is embedded. The relation between data is displayed using an expander button. Please tell me how I can rearrange this data fast? I think this can be done by running sql queries or ssis package but I'm not sure.
You can use SSIS package with multiple Source components (inside Data Flow) to access each sheet.
Once you can see both sources, you can sort all key columns using a sort component and then use a Merge Join to combine the two sets of data together