selection of the week, month, year in source throgh odi 11g?
Hello
I have 3 years of data in a source table (tableatm). data will be added to this table eod.
I applied the filter on the column atm_date below screenshot
Based on the filter, I want to load the data of the year underway, data of the current month data of the week underway, data from the previous month, data from the previous week, data from the previous year to this table.
If I want to load data for 2010, then filter applied on TO_CHAR (TABLEATM. ATM_DATE, 'YYYY') = '2010' , I get only the data of 2010.
If want to download data from 2015, filter applied on TO_CHAR (TABLEATM. ATM_DATE, 'YYYY') = "2015". But it's constant...
I want to give the filter like that.
TO_CHAR (TABLEATM. (ATM_DATE, «YYYY») = double '(sélectionnez (sysdate,-12)) ". When I applied the filter using this formula on this date column. I don't get all the data.
Please help me...
Please help me,
Thanks in advance,
A.Kavya.
Hello
I applied the dynamic filter as shown below. now, I get only the data of the year 2015...
filter condition is
TO_CHAR (to_number (to_char (TABLEATM. ATM_DATE, "YYYY"))) = (SELECT to_char (to_number (to_char (SYSDATE, 'YYYY'))-1)
THE DOUBLE)
Thanks & regards,
A.Kavya.
Tags: Business Intelligence
Similar Questions
-
Studio: Chart based on the day/month/year
In the Studio, there is a requirement for us display the chart based on the day/month/year.
Because the Date attribute does not appear as a Dimension in the graphics configuration list, I divided attribute date day/month/year attributes and inspiring that I generated a sample chart
But now I am facing a problem
Suppose that there are records for only July and Ms then the graph shows in July and Aug, it does not show in August.
I agree that there is no record for August in my field of data which is the reason why Augustus is not displayed in the table. But according to our requirement, we must view August as well as with zero count.
I'm curious to know if there is a way to do it.
The idea behind the record calendar type is a secondary, new record type are you introduction that completes your registration type "sale." The records you provided would be your 'sales' record type, not your type of registration of "calendar". To use your example, your recordings of 'sale' would look like what provided you:
=============== RECORD ==================
ID: 1
Sales_Amount: 1000
Month: October
RecordType: sale
Date: 2012-10 - 01 T 00: 00:00.000Z
day: 01
year: 2012
=============== RECORD ==================
ID: 5
Sales_Amount: 1000
Month: December
RecordType: sale
Date: 2012-12 - 01 T 00: 00:00.000Z
day: 01
year: 2012
==========================================
And your registration type "calendar" would be charged later. I usually provide a single record of short for all day for this record type:
=============== RECORD ==================
ID: 1
Month: October
RecordType: calendar
Date: 2012-10 - 01 T 00: 00:00.000Z
day: 01
year: 2012
=============== RECORD ==================
ID: 2
Month: October
RecordType: calendar
Date: 2012-10 - T 02, 00: 00:00.000Z
day: 02
year: 2012
==========================================
(and so on, one for each day until today... yawn)...
=============== RECORD ==================
ID: 790
Month: July
RecordType: calendar
Date: 2013-07 - 31 T 00: 00:00.000Z
day: 31
year: 2013
==========================================
Thus, when you write a statement of EQL as:
RETURN foo AS SELECT
Sum (Sales_Amount) AS "TotSales.
GROUP BY month
You will get a bucket of months for every month, where the record type "calendar" will not fail to offer a month when sales do not offer it... aka. Fill the "holes".
HTH,
Dan
-
The date system in the taskbar indicates the year, month, day (as in the army). How can I read the day, month, year?
It's weird, in my version (Windows 7 Pro), it shows much more than that.
-
How to get the Date, month, year of the DateTimePicker
Hi, I am using the DateTimePicker.
There are several question about this command:
1. how to get the Date, month and year?
-With the help of myDateTime.value, I get this string ' Wed May 08 14:45 ICT 2013 '-> I have to manually analyze this? Because I need in format yyyy/mm/dd. Or can set the format of dateTimePicker.value?
2 format on dateTimePicker self (on the user interface) is d/m/YY, I can't change to another format?
Thank you
dateTimePicker.value return a QDateTime not a string.
https://developer.BlackBerry.com/Cascades/reference/bb__cascades__datetimepicker.html#property-value
See more:
https://developer.BlackBerry.com/Cascades/reference/QDateTime.html#date
https://developer.BlackBerry.com/Cascades/reference/QDate.html
You can get
day = dateTimePicker.value.date().day() month = dateTimePicker.value.date().month() year= dateTimePicker.value.date().year() dateYYYYMMDD = dateTimePicker.value.date().toString(Qt::ISODate) dateYYYYMMDD2 = dateTimePicker.value.date().toString("YYYY/MM/DD") dateYYYYMMDD3 = dateTimePicker.value.toString("YYYY/MM/DD")
-
Need to find the first Monday by concatenating the week and year
Hello
I'm looking for first Monday by concatenating columns week below and the year just ending as strings
Test data: -.
Week without year
------- ------------
1 85
45 95
4 05
34 68
Please help me on this?
SQL questions should go to the SQL space.
-
Date of the Monday of the week and year
Hi gurus,
I have the data for the week (eg.52) and year (eg. 08) and I need to get the date of the Monday of the week (December 21, 2008... IE 52nd week of 2008.)
Pls know me the solution for this sql statement...
Thank you
Shashi...Hi, Shashi,
user588757 wrote:
Hi gurus,I have the data for the week (eg.52) and year (eg. 08) and I need to get the date of the Monday of the week (December 21, 2008... IE 52nd week of 2008.)
Pls know me the solution for this sql statement...
Thank you
Shashi...Surely you meant December 22, 2008, No 21.
Assuming that you are talking about ISO dates, where week 1 starts the Monday closest to January 1:TRUNC ( TO_DATE ( :year_txt , 'YYYY' ) , 'IY' ) + (7 * (:week_val - 1))
where: year_txt is a string and: week_val is a number.
TRUNC (dt, "IY") is attached to the Monday of the week 1.
-
A query with the weeks/months/quarters without filling data
During recovery of monthly data from any data source, experts how CF (which I am not one) creates results for the time intervals where there is no results? I.E. event data to draw per month, how can I show that there can be no activity for a given month? Thanks in advance.There is a way to make more efficient approach to dempster.
Step 1: run your query from the database. (1 queries)
Step 2 - create a cold fusion query to get all years-months in the range of dates of interest (2 requests)
Step 3 - make a query of queries for years-monthly query 2 that are not in the application 1. (3 requests)
Step 4: make a query of queries that questions 1 and 3 trade unions. -
For example, the Date of beginning of life cycle shows 31/05/2001 (March 5) and the end of Support Date extended watch 07/12/2001 (12 July or December 7).
The date format is month/date/year. This format is for the start date and end date for extended Support.
In your example, the start date is May 31, 2001, and the end date would be July 12, 2001.I hope this helps.
Marilyn
-
Could you please tell me how to change the display of the date to display the day month year instead of month day year?
HOW to: Change the Date, time, number, and currency value displays in Windows XP
http://support.Microsoft.com/?kbid=307938
Check and tell if its working.
-
Excerpt of day, month, year
Hello
I have a XML tag consisting of date YYYY-MM-DD format. I need to break this date and extract the day, month, year in 3 different columns.
For this I use <? xdoxslt:get_month('?) DateInvoiceJ_ID20?', $_XDOLOCALE)? > for months. But when I seeds the result to PDF it returns 0 instead of the current month.
but when I use like <? xdoxslt:get_month('2010-12-09',_$_XDOLOCALE)? > it returns the result real, i.e., 12.
What should I do to get the result of the XML tag and let me know what format I need to select in the property.
I use desktop BI Publisher 10g
Thank you
If the date in the XML format is always constant (YYYY-MM-DD), then you can simply use the secondary string function to get values.
Example:
-Year
-Months
-Day
Otherwise, you can extract values at the SQL level and display because there are in your report.
-
In "windows calendar", I want to print a paper copy of the following month.
I chose dates in Windows and in print without success window...
See if the above helps you at all.
See you soon.
Mick Murphy - Microsoft partner
-
How do I change calendar of the day seen weeks/months?
My schedule allows me to see only 2 days in a row. I would like the option week or month, but may not know how to change it. Thank you
Hello
To switch to the week or month view in the calendar after the opening of calendar simply right click on the window and the options that you get at the bottom of the screen select week or month.
Concerning
-
Hello
new to oracle/mark. I need to write a query that will pull the customer details and on the columns, it will have the month-year: Jan2015, Feb2015... Dec2015.
on the lines, it will contain the details of the client. the information it will provide are the categories of risk to each month.
I create a query, but it uses a function to update and is very slow. There are approximately 3000 documents. An update of column required 15 minutes or even more. so an update of column takes 15 minutes * 9 to update until September.
the best ways to manage this demand?
my query is:
UPDATE tmpRiskGrades one
SET a.feb2015 =)
Select l.risk_grade
of rep_loanportfolio l
where a.agreementno = l.agreeement_no AND l.dtuserdatetime = February 28, 2015 ")
Certainly, that looks like a pivot base for me. Assuming that dtuserdatetime is actually a date data type, something like that will not work in your version of non-recognition:
Select customer_no, agreeement_no, customer_address, loan_type region,
Max (case when dtuserdatetime = to_date (Jan 31, 2015 "," DD month yyyy ' "))
end of the era risk_grade) jan2015,.
Max (case when dtuserdatetime = to_date (February 28, 2015 "," DD month yyyy ' "))
then risk_grade end) Feb2015,
...
of rep_loanportfolio l
where loan_type = "HOME LOAN" and
account_status = 'LIVE' and
dtuserdatetime between to_date (Jan 31, 2015 "," DD month yyyy ' ") and
TO_DATE (31 Dec 2015 "," DD month yyyy ' ")
Group of customer_no, agreeement_no, customer_address, region loan_type
order of region loan_type, customer_no, agreeement_no, customer_address
If you are on 11.2 or higher, you could look at the PIVOT keyword, which is a more concise expression of the same thing.
John
-
average amount of an article during the days of the week to a month
Dear members,
I want an application that compiles the data as below.
Point 1 first day of the week saying Monday by 10 in a specific month
Article 1 Monday next 20th of the same month qty
Article 1 Monday 25th of the same month next qty
Article 1 Monday next 22nd of the same month qty
If there are 4 four Mondays of the month
the avg of 1 article is (10 + 20 + 25 + 22) / 4 = 19.25
Similarly, avg of article 2, point 3, point 4. .on every Monday, Tuesday, Wednesday... for a month.
kindly show me the way...
Thank you.
teefu
Lahore.
Hi teefu,
Try this
create table ts1
(sale_date date, item_code number, number of qty_sold);
Insert the ts1
values (to_date('02-Jun-2014','DD-mon-YYYY'), 1, 10);
Insert the ts1
values (to_date('16-Jun-2014','DD-mon-YYYY'), 1, 20);Insert the ts1
values (to_date('23-Jun-2014','DD-mon-YYYY'), 1, 30);Insert the ts1
values (to_date('23-Jun-2014','DD-mon-YYYY'), 1, 25);Insert the ts1
values (to_date('30-Jun-2014','DD-mon-YYYY'), 1, 30);Insert the ts1
values (to_date('02-Jun-2014','DD-mon-YYYY'), 1, 10);Insert the ts1
values (to_date('05-Jun-2014','DD-mon-YYYY'), 1, 70);Insert the ts1
values (to_date('12-Jun-2014','DD-mon-YYYY'), 1, 150);Insert the ts1
values (to_date('26-Jun-2014','DD-mon-YYYY'), 1, 40);Select item_code, to_char(sale_date,'Day') day, avg (qty_sold) avg_sold
ts1 by item_code group, to_char (sale_date, 'Day')
output
ITEM_CODE DAY AVG_SOLD
--------- --------- ---------
1 Monday 19,25
1 Thursday 86.666667
Select the day of item_code, to_char (sale_date, 'Day'),
Sum (qty_sold) wheel (TO_NUMBER (to_char (sale_date, 'w'))) avg_sold
of ts1
Item_code group, to_char(sale_date,'Day');
ITEM_CODE DAY AVG_SOLD
--------- --------- ---------
1 Monday 15.4
1 Thursday 65
-
Calculate the age (months and years) of two dates
Trying to get the (almost exact) age in years and months to fill in 'Age at the time of retirement' (years1) since the date of birth (DOB1) and the date of their departure in retirement (retireDate1). The only examples that I could find are dates "today." If anyone can help with code? And I understand it works better with JavaScript but FormCalc would also work?
Dates as DD/MM/YYYY
Field is num {z9}
Thank you in advance for your help!
I could do this work with Age1 as a text field. Of course, you can do whatever you want with it, but this method makes the most sense for me because I can say 99 months "99 years". If you need to separate the year and month in different areas, you should be able to do it easily. Finally, it requires that the user does not manually enter dates. (Something on the raw values isn't quite right when they came from the selection.)
Age1::calculate (or anywhere where you want this event)
if (!DOB1.isNull && !retireDate1.isNull){ var d1 = DOB1.rawValue.split('-'); var d2 = retireDate1.rawValue.split('-'); var years = parseInt(d2[0]) - parseInt(d1[0]); var months = (parseInt(d2[1]) - parseInt(d1[1])); if (parseInt(months) < 0){ months = 12 + months; years--; } Age1.rawValue = years + " years " + months + " months."; }
Maybe you are looking for
-
All is not there - bar of the main window, then "File, editing etc." line... no Firefox button. Running on Windows XP on an ASUS eee notebook
-
C4580 install disables the XP firewall and internet access for 3 minutes at the start of the PC
After installing C4580, when I turn on my Dell Inspiron C510m, XP tells me that the firewall is disabled, I can't access to the internet or even my router nor can I use the Applets in Control Panel that could help me sort these things. After 3 minute
-
HP TouchSmart 15-j105ea mSATA ENVY included?
Hello. I intend to buy the TouchSmart from HP ENVY 15-j105ea, but I would like to know if this includes a mSATA (24 GB) drive? And if not then if he has to use the mSATA port. I have search and read that the specifications, but not talk about the mSA
-
Liquid E3 - how always show the home screen when slide to unlock
When I unlock swipeto I get a screen of application (I think that may be the last one I've used, but not sure) instead of display the home screen, which is what I want. I've looked through all the settings and the manual and can't find how to do this
-
I get error 3219. When you try to send e-mail messages.
I get error 3219. When you try to send e-mail messages.