how to Populate following reqirement - talend

Populate the time_dim with the following fields
TIME_DIM_ID, DATE, DAY, MONTH_ID,MONTH,MONTH_SEQ,WEEK_ID, WEEK_DESC
20140522, 5/22/2014, Thursday,201405,May, 5, 201420, 19-May-2014 to 23-May-2014
You should get starting year as input and no of years as input and has populate starting from the starting year to the input year+no of years.

Related

How to get network days by subtracting from current date and older date on Jasper soft studio? [duplicate]

This question already has answers here:
Calculating Time and Date difference
(1 answer)
How to create a single expression displaying time difference between two Date's as years, months, days, hours, minutes, seconds
(1 answer)
Closed 2 years ago.
I need to find net workdays by subtracting from older date from today ?
Ex:Today Date is 7/14/2020 and older date is some 7/14/2019.
Expected result = 365.
The expression is extract(days from now() - <older date column>).
My recommendation is to have the database server perform this calculation for you by adding the expression to the select list in your query. If you prefer to do this with scripting after Jaspersoft has retrieved the data, then I cannot help you there.

Calendar view in SSRS

I am fetching a stored procedure to the report having two columns as date and non business day. I need to create a year wise calendar for the year which is getting fetched from stored procedure. Each page will have a calendar of a year with 12 months along with days.
Well, you would need a dataset with a Date (Day and Year at least) and a corresponding value for this Day. Then simply add a matrix in your report. For the columns textbox chose the Date (Day) and for the rows textbox chose the Date (Year). In the data textbox use your value. If you load it, it will look like calender because the Days get brocke down by Year.

Managing dates in SPSS - Time difference in months

Im a novice SPSS user and are working on a data set with two columns, customer ID and order date. I want to create a third variable with a month integer of number of inactive months since the observed customer ID:s last order date. This is how the data looks like:
This will create some sample data to demonstrate on:
data list list/ID (f3) OrderDate (adate10).
begin data
1 09/18/2016
1 03/02/2017
1 05/12/2017
2 06/06/2016
2 09/09/2017
end data.
Now you can run the following syntax to create a variable that contains the number of complete months between the date in the present row and the date in the previous row:
sort cases by ID OrderDate.
if ID=lag(ID) MonthSince=DATEDIF(OrderDate, lag(OrderDate), "months").

Google Spreadsheets - Determining years since date value in another cell

I have cells with date values formatted as DD/MM/YYYY. What I need is to use that value to determine the number of years that have passed since that date as of Jan 1st of the current year.
For example.
4-4-2010 - the value I should see is 3 since only 3 years had passed as of Jan 1st 2014.
But when I open the spreadsheet next year on Jan 2nd it should show 4 since another year will have passed.
I don't need to see months or any increments of years. Just a whole number.
DD/MM/YYYY isn't really supported as a date format by Google Sheets (at least from what I've seen, correct me if I'm wrong. How can you identify if something is DD/MM/YYYY or MM/DD/YYYY when neither DD or MM is > 12?). But since all you're trying to do is get the number of years since a certain year, all you have to do is extract the year from the cell you're looking at and subtract that from the current year.
Assuming the date you using is in cell A1:
=year(now()) - year(A1)

compare data with month from previous year in Qlikview

I'm relatively new at Qlikview and wanted to compare some data from a selected year with its previous year.
In Qlikview I have a table in which i show the count of all the contacts there have been with the customer per mount [=count(contactsID)] with the dimension [contacts.month]
I want to show an other expression with the contacts with customers in the same month a year before.
So if my table shows all the contacts from jan-2014 until dec-2014 I want a bar next to every month with the months jan-2013 until dec-2013
for example jan-2013/jan-2014; feb-2013/feb-2014; etc
some extra information:
In the database is a date saved. In Qlikview i load that as:
load
date as contact.date,
Year(date) as contact.year,
Month(date) as contact.month,
Day(date) as contact.day;
If anybody could help i would be very grateful! Thanks to all of you in advance!
I got the answer on the Qlikview community!
Add expression as:
count({<contact.year={$(=contact.year-1)}>}ContactID)
http://community.qlik.com/message/517136#517136
You can solve this problem at the script side while loading data. So that you can compare year to date data with previous year with until corresponding month.
Transaction_Table:
LOAD date,productID,amount
FROM data.qvd;
concatenate
Load AddYears(date,1) as date,productID,amount_1
Resident data where date<=AddYears($(=max(date)),-1);
There will be two coloumns "amount" is current date's data and "amount_1" is previous year's same day data.