Convert rows to columns using Talend Open Studio for DI - talend

2PAN;4189670095711234
4Transation Amount;11.00
7Transmission Date and Time;04/12/yy 06:30:05
32Acquring Institution ID;826-United Kingdom
37Retrieval Ref Num;12346789
49Transaction currency code;784 - UAE Dirham
The above one is the data that i have. I need it converted to as given below
2PAN;4Transation Amount;7Transmission Date and Time;32Acquring Institution
4189670095711234;11.00;04/12/yy 06:30:05;826-United Kingdom
I want the first column of the delimited file to be the row values and second column to be the respective row values of the above.
How to do it using Talend Open Studio for DI. I had tried tPivotTocolumns and tSplitRow.

Try using tSplitRow component to "Pivot" rows and columns, according to your need based on your schema.
Refer http://desireddata.blogspot.com/2015/04/how-to-use-tsplitrow-component-in-talend.html
Thanks,
Sekar.

Related

Adding Columns using google sheets

Is there a way I can add a total of a column if the numbers are imported from a different sheet with google sheets? and matching a pair of dates?
=SUMIFS($S$8:S47,$O$8:$O47,">="&T$51,$O$8:$O47,"<="&$V$51)
most likely this is the issue of QUERY. query likes to "assume" the type of dataset (numeric/plain text) and 90% of time it assumes it wrongly so you either end up with empty columns or missing values. use in S6:
=IMPORTRANGE("1nC7e8za4_SjIAbPsRv4loQ8CHinwcp0J43LcyG0qopM", "August 2022!i3:j45")

Separating dates between a date range in Google Data Studio

I have two dimensions in Google Data Studio in the format Date (From,To) from an external source and now I want to display all days within the time space individually.
Ex: 01.10.2020 - 05.10.2020
---result as table---
01.10.2020
02.10.2020
03.10.2020
04.10.2020
05.10.2020
That's it. I just can't find a solution.
I understand that your ultimate goal is to join the two dates into a single field in the format 01.10.2020 - 05.10.2020.
To do this, you can create a new field that contains the formula:
CONCAT(Date1, ' - ',Date2)
And after, insert this new field in your table. The output format of this formula will be a text type element.

Pivot data in mapping dataflows

I want to pivot the values into description using mapping dataflows
My example
So the value column plots to each new description value column.
it should look like this
I understand that the groupings will be on the IDName, ID and DateTime columns and I have removed the columns I don't need.
I'd like to know what goes where in the pivot values
Thanks
Step1: Create dataflow
Step2: Add original dataset to source
Step3: In Pivot Settings use groupby on ID, IDName, DateTime columns
You will get data preview as expected
Step4: Then Configure Sink with output csv and Store data to target file.

Converting a measure to date for line chart in Tableau

I am trying to convert some measures that I have into dates for making a line chart. This is the data I have.
[
I am trying to make a line chart out of this data. But I cannot put it under a date since there are no dates in the dimensions. Any help would be appreciated.
You will need to some how reshape this data to create a single date field. You can do that out of Tableau or perhaps use Tableau prep. Your underlying data source is likely to drive that decision, you don't mention anything about that in your question.
Edit from comments:
Connect to the spreadsheet in Tableau. In the Data Source window, where it shows you all of the data in a table, select the 4 fields starting with Tuition and Fees. Then click on the drop down and Pivot those fields.
That will create 2 new fields, Pivot Field Names and Pivot Field Values.
In your workbook create 2 new calculated fields:
[FeeYear]: LEFT(RIGHT([Pivot Field Names],7),4)
and
[FeeDate]: MAKEDATE(INT([FeeYear]),1,1)
You can use FeeDate as the x axis of your line chart. Pivot Field Values is the measure to use in your line chart.

Excel 2010 - Pivot using external csv file - how to make dates work?

I have a set of pivot tables that use external csv files as their data sources. The csv files originally contained dates in the format dd/mm/yy (e.g. 31/01/13). The pivot tables did not recognise these as dates. I converted the dates in the csv files to dd/mm/yyyy (e.g. 31/01/2013) but these were still not recognised as dates by the pivot tables.
I tried setting up a calculated field =DATEVALUE(date_from_csv) but when used in the pivot table (I'm using the Max option to select the most recent date) I get #VALUE! errors.
I have tried converting the csv file to xlsx and also importing the data into the workbook that contains the pivot table - but I can't change from the external connection to use the internal data. I don't want to rebuild the pivots as there are a lot of variables and formatting that would take ages to redo.
Any ideas??
The problem was caused by the date column being blank for some rows and I found that if I moved a row to the top (after the header line) that had all the fields filled in, then Excel got the formats correct and the pivot tables now work!