Dashboard calls between 2 different date columns
Hi all
I am creating a dashboard command prompt that will allow users to filter the report from 2 different date columns. We have an opening date column and a column of closing date. I want to allow users to choose an opening date and then a closing date that is at a later date. How could I go to set it up?
Thank you in advance!
I received your question, but I was not sure of your ability to create guest
You will use 2 open and closed dates in the command prompt and set the variables in the presentation. In the report for this 1 date column use <= and="">= instead of operator.
=>
Tags: Business Intelligence
Similar Questions
-
Salvation in him between operator using date columns
Hello
I have a small doubut, once I try to get the results perticular between dates, it does not work
ex:-in the emp table I try to get employees rental u between January 1, 80, to January 3, 80
Once I use the query select * from emp where hiredate between January 1, 80 'and January 3, 80'
It is the display of different data.
Please help I want 01 alone, 2nd and data jan 3rd only how to write the query.
Thank you toHello
You can make the Portuguese the default language for the DATEs in your session saying:
ALTER SESSION SET NLS_DATE_LANGUAGE = PORTUGUESE;
Note There are no quotation marks.
In a specific call to TO_DATE, you give NLS parameters in the 3rd argument:
TO_DATE ( '01-FEV-2009' , 'DD-MON-YYYY' , 'NLS_DATE_LANGUAGE = PORTUGUESE' )
This setting overrides the current NLS settiings session without changing them.
-
Concatenate the date and time that are stored in two different date columns
Hello
I have to select date two columns from two different tables a date and another over time.
I want to concatenate these two columns and format the result form dd/mm/yyyy hh24
But I get error invalid number
For example
create table as datetime
(select to_date (' 21/01/2014 ',' dd/mm/yyyy') as dt, to_date('08:00','hh24:mi') like double MC
)
Select to_char(dt||) TM, "dd/mm/yyyy hh24") of datetime
I use oracle 10 g
Help, please.
Hello
Roger wrote:
... If you need to take the party date to a date column and the time of anonther part, then you must first convert them to a string, concatenate them and convert them to date.
You don't need to do this. What you have described is a way to do it, but this isn't the only way.
If d1 and d2 are the two DATEs, you can get year, month and day of d1 combined with hours, minutes, and seconds from d2 liike this:
TRUNC (d1) and (d2 - TRUNC (d2))
Nesting TO_DATE and TO_CHAR in Oracle, is almost never the best way to do anything. Oracle provides many functions (for example, TRUNC) to manipulate dates, but also of DATE arithmetic.
-
APEX_UTIL. IR_FILTER with BETWEEN operator for date columns
Hello
When I run my application, I can put a filter BETWEEN date columns. I can't find a way to use it with the APEX_UTIL. Function IR_FILTER. Maybe I missed something?
Documentation: http://download.oracle.com/docs/cd/E17556_01/doc/apirefs.40/e15519/apex_util.htm#CHDDDFBF
TobiasTobias,
If you think about it, "between the" is nothing else than a way of the single line to say
WHERE: X > =: Y
AND: X<=>=>Then you should be able to apply two filters of the report using the operators LTE and GTE
Hope this helps
Doug Gault
www.sumneva.com -
Guests of the date to a Date column
Hi gurus,
I'm trying to get the Date of application for a Date column. This is the approach that I took from the previous post.
My approach
(1) in the report, I put the filter on the Date column with variable presentation as startdate with a date by default, and in the window of fx, I applied
CASES WHERE 1 = 0 THEN the picture. Table of date ELSE. END date
(2) I repeated the same thing by getting the same column with Variable presentation date as Enddate with a date by default and in the fx I applied
CASES WHERE 1 = 1 THEN table. Table of date ELSE. END date
(3) in the dash prompt, I had the same date twice column by applying the same formulas in fx, default sysdate - variable Server - and variable adjustment Set - variable of presentation - startdate and same with Enddate.
The report works well, but the report does not all records. I mean that I have given 12:04:36 am but report draws from 12:37:53 am. So, I'm missing some documents. I don't know where I am doing mistake.
Could someone help me please
Thank you
Published by: 792011 on September 14, 2011 11:00792011 wrote:
Hi gurus,
I'm trying to get the Date of application for a Date column. This is the approach that I took from the previous post.Re: How to get the date of request for a date column
My approach
(1) in the report, I put the filter on the Date column with variable presentation as startdate with a date by default, and in the window of fx, I applied
CASES WHERE 1 = 0 THEN the picture. Table of date ELSE. END date
(2) I repeated the same thing by getting the same column with Variable presentation date as Enddate with a date by default and in the fx I applied
CASES WHERE 1 = 1 THEN table. Table of date ELSE. END date
(3) in the dash prompt, I had the same date twice column by applying the same formulas in fx, default sysdate - variable Server - and variable adjustment Set - variable of presentation - startdate and same with Enddate.The report works well, but the report does not all records. I mean that I have given 12:04:36 am but report draws from 12:37:53 am. So, I'm missing some documents. I don't know where I am doing mistake.
Could someone help me please
Thank you
Published by: 792011 on September 14, 2011 11:00
From what you say, as you did, it should not work. Investigation of the CASE, you have stage 1) and (2) that you put in the window fx in two columns, is indeed the same thing that just have two instances of your table. Date column.
Follow the steps in this link and you should be good to go:
http://oraclebizint.WordPress.com/2008/02/26/Oracle-BI-EE-101332-between-prompts-for-date-columns-using-presentation-variables/
-
. For example, I need to calculate the difference between a date column, 'Table_Name '. "' Column_Name ' and (Current_Date-1). I tried different ways to do this. But nothing seems to work.
Try the below formula.
Replace "Time". "" Date "with your column.
TIMESTAMPDIFF (SQL_TSI_DAY, "Time". "Date", TIMESTAMPADD (SQL_TSI_DAY-1, CURRENT_DATE))
Thank you!
-
need to get only one line when you use between (date columns)
Hi all
create the table SAMPLE_ITEMS
(ITEM_NO, varchar2 (10))
Date DELIVERY_DATE,
Number of QTY_SUM1
Number of QTY_SUM2
Number ITEM_QTY,
Number ORDER_QTY,
Number ITEM_AMOUNT,
Number of SALES_AMOUNT
);
insert into SAMPLE_ITEMS values ('AAA', ' 28 / 04/2014 ',-88, 0,475,262,-123.45,-1188);
insert into SAMPLE_ITEMS values ('AAA', ' 28 / 05/2014 ', 0, - 122, 475, 262, - 10.234,-1647);
insert into SAMPLE_ITEMS values ('AAA', ' 16 / 06/2014. ', 0, 0,475,262,-80.59,-135);
insert into SAMPLE_ITEMS values ('AAA', 19 December 2014 ', 0, 0,475,262,-42.29,-67.5);
Setting out with my own query,
ITEM_NO TRUNC (DELIVERY_DATE) QTY_SUM1 QTY_SUM2 ITEM_QTY ORDER_QTY ITEM_AMOUNT SALES_AMOUNT AAA 28/04/2014 -88 0 475 262 -123.45 -1188 AAA 28/05/2014 0 -122 475 262 -10.234 -1647 AAA 16/06/2014 0 0 475 262 -80.59 -135 AAA 19/12/2014 0 0 475 262 -42.29 -67.5 Every time I question as code
Select * from SAMPLE_ITEMS
where DELIVERY_DATE between April 28, 2014 ' and 19 December 2014 '-> they must pass as a parameter
I need to get only one line
AAA -88 -122 475 262 -256.564 -3037.5 Database 11.2.0.1.0
Note; Please do not use MAX for Date and do not want to display Date columns in the result
Note 1: I want to choose DELIVERY_DATE in select it also and only get a line like above the expected result
SELECT item_no
SUM (qty_sum1),
SUM (qty_sum2),
SUM (DISTINCT item_qty),
SUM (DISTINCT order_qty),
SUM (item_amount),
SUM (sales_amount)
OF SAMPLE_ITEMS
WHERE the DELIVERY_DATE BETWEEN TO_DATE (28 April 2014 ', "dd/mm/yyyy")
AND TO_DATE (19 December 2014 ', "dd/mm/yyyy")
GROUP BY item_no;
I will get
ITEM_NO Trunc (DELIVERY_DATE) QTY_SUM1 QTY_SUM2 ITEM_QTY ORDER_QTY TTEM_AMOUNT SALES_AMOUNT
AAA 12/19/2014 -88 -122 475 262 -256.564 -3037.5
OK fine, I want to choose DELIVERY_DATE as if so I'll have all the lines, but I want to only show one as shown above
Because I do report discoverer in Oracle Apps, without taking the DELIVERY_DATE of the select query, it is not possible to move the date as a parameter
Can you please help me how to do this?
Thank you
Post edited by: Rajesh123 NOTE added in the body of the Message
Post edited by: added test Rajesh123 messages
Maybe you want a single line in all cases
Select si.item_no,
start_date min (d.start_date),
min (d.end_date) end_date,
min (si.qty_sum1) qty_sum1,
min (si.qty_sum2) qty_sum2,
min (si.item_qty) item_qty,
min (si.order_qty) order_qty,
Sum (si.item_amount) item_amount,
Sum (if. Sales_Amount) sales_amount
of (start_date select to_date(:date_from,'dd-MON-yyyy'))
to_date(:date_to,'dd-mon-yyyy') end_date
of the double
) d
left outer join
TR sample_items
on the si.delivery_date between d.start_date and d.end_date
Group of item_no
ITEM_NO START_DATE END_DATE QTY_SUM1 QTY_SUM2 ITEM_QTY ORDER_QTY ITEM_AMOUNT SALES_AMOUNT - 01/01/1900 31/12/2000 - - - - - - Concerning
Etbin
-
How can I get the lines for the date between 2 different days
Hi all,
How can I get the lines for the date between 2 different days.
Sample data:
Table name: Articles
Title start_date end_date
Heading1 08-22-2011 2011-09-11
2011-08-01-2011-09-01 Title2
Title 3 2011-08-21 08-21-2011
title4 2011-08-28 2011-09-11
Result will be:
Title start_date end_date
Heading1 08-22-2011 2011-09-11
2011-08-01-2011-09-01 Title2
title4 2011-08-28 2011-09-11
This is my example query:
SELECT * FROM items WHERE trunc (es.date_start) > = TO_DATE('2011-08-22', 'YYYY-MM-DD') AND trunc (es.date_end) < = TO_DATE ('2011-08-28', 'YYYY-MM-DD')
but I can not get the expected results. Any help would be much appreciated.
Thanks in advancenot read your question properly before...
Please try this
Select * FROM items
WHERE (TO_DATE ('2011-08-22', 'YYYY-MM-DD') between TRUNC (es.date_start))
AND TRUNC (es.date_end)) OR
(TO_DATE ('2011-08-28', 'YYYY-MM-DD') between TRUNC (es.date_start))
AND TRUNC (es.date_end)) -
Connect between two different applications. A call to the other application.
I would like to know if it is possible to connect between two different applications in oracle apex IE appeal one request for the other? If the applications are allowed even say LDAP.
Yes,
Refer to the post office, requested by me and answered by fac586
How to use one login for all applications in one only workspace
-
to join two columns with different data types
Hello experts,
I have two tables...
with their data as belowcreate table1 ( col1 varchar2(20) ); create table2 ( col1 number(10) );
My questionwith table1 as ( select 'xx' col1 from dual union all select 'yy' col1 from dual union all select '01' col1 from dual union all select '02' col1 from dual union all select '03' col1 from dual union all select '04' col1 from dual ),table2 as ( select '01' col1 from dual union all select '02' col1 from dual union all select '03' col1 from dual union all select '04' col1 from dual )
How to join table1.col1 table2.col1? since they are different data types... .i tried to use To_char but then I got 0 zero,.
is there is all the functions I can use?
Thank you!!user642297 wrote:
Hello experts,I have two tables...
create table1 ( col1 varchar2(20) ); create table2 ( col1 number(10) );
with their data as below
Above, you said that table2.col1 was a NUMBER.
Below, is a VARCHAR2:with table1 as ( select 'xx' col1 from dual union all select 'yy' col1 from dual union all select '01' col1 from dual union all select '02' col1 from dual union all select '03' col1 from dual union all select '04' col1 from dual ),table2 as ( select '01' col1 from dual union all select '02' col1 from dual union all select '03' col1 from dual union all select '04' col1 from dual )
Woudn't be a better approximation of your real tables:
),table2 as ( select 1 col1 from dual union all select 2 col1 from dual union all select 3 col1 from dual union all select 4 col1 from dual )
?
My question
How to join table1.col1 table2.col1? since they are different data types... .i tried to use To_char but then I got 0 zero,.
is there is all the functions I can use?Your postal code. I think the best way is to use TO_CHAR, but maybe you were using it differently.
SELECT * FROM table1 JOIN table2 ON NVL ( LTRIM (table1.col1, '0') , '0' ) = TO_CHAR (table2.col1) ;
This assumes that table1.col1 never contains decimal points, unary + signs, exhibitors, or other things like that.
He will be responsible for negative numbers, but if table1.col1 contains 0 in front after the sign less (for example '-0012' "), then the solution is a bit more complicated. -
Swapping between periods of data
Hi all
Running planning / Essbase 11.1.2.1
Currently...
At the beginning of our budget process load us data of actual sales per week / shop (1600) / product (60) for periods until we are on budgets (for example if we start the process in week 40, we load the actual data for the weeks 1 to 39); This provides the basis for the budget.
However, due to the holidays or vacation for kids falling on different weeks in fiscal year against our weeks of actual data, we need exchange between weeks sales data. Currently, we use the ODI and have a .txt file that contains two columns - source and target, as part of the data load that this file manages the Exchange as we need.
Update...
We are developing a new application and that you want to replicate the above, but we are trying to load a load rule Essbase data. Can anyone suggest how we can achieve the same when you use a rule to load? If it's something that we have to go in and manually change each year on the rule it would not be a huge problem - but we don't really want to have to open the data file and manually change the data in there.
However there was no case of W01 to do after the initial replace im guessing the 'Replace' option is not appropriate as if we replace with W03 W01, we might want to then replace W02 W01?
Data file columns are:
Year period, entity, products, data
FY12 W01, Shop3, Prod1, 7.10
As an alternative, I'm looking through a form of planning with a smart list, then a business rule to manage the swap. WF consists of the weeks down the lines and members of account smart list in the column; smart list consists of 52 weeks - the user must select a week of target in the drop down against the week of the source in the lines, if the week is the same in the exercise as real of the year, then the user will not select anything.
The WF works well, however I am wrong then generate code BR to move the data according to the needs. See code below (I've hardcoded some members to test):
Fix ("2012", "Current", "budget", @relative ("Cats", 0), "S0003")
* "Target weeks" * "
*(*
IF ("BOTHER"-> "NAP" < 1)
* "Basic" = "Historical basis"; " *
Weeks of targets is the Smart List, historical account is the target for the initial load of data and Base is the account for data exchanged to land on. The above code works as expected, IE if no smart list entry has been filed, then the data is copied between equivalent weeks. I'm looking for pointers about OTHER required code that will do what I'm after... I had looked at a different method using Global Variables with FROM and WEEK guest as well as @XRANGE to try to get around the fact that the WF, etc., but had hit a wall with this.
Own experiences or suggestions will be appreciated.
Thank you
JBJB - I guess you could do (but you want to avoid) has SO long... ELSEIF... ELSEIF..., right? And I mean by "long", 50 + tests?
-
Dashboard invites for problem of dates
Hi guys,.
Im working on guests of dashboard where my requirement is I have a column of date named Calendar_Date where it should be used 2 times in the line of dashboard, to say
Calendar_Date = from_date, then Calendar_Date = To_Date
what im trying to do is end user want to capture data between two dates, so you might ask a question cant you use between operator for dates.
Between the operator gives me result, but my requirement is
Calendar_Date between 3 July 2010 ' and * "this_date" *-> this_date which will be given by the end-user must be greater than 3 July 2010 "because the To_Date date must be greater than the from_date. How is that possible? .. compare to_date give me the list of all years
Any help would be appreciated.
By,.
KK
Published by: KK on July 4, 2010 23:57Put single quotes around prompt commands and defaults to:
' @{Date} {2009-01-01}'
Your error message is a TNS downtime because the database was not able to connect. Try again, and if it persists, you should debug it before looking at the report.
-
VCS CPL block call between subareas
Hello
I'm looking for, it is possible to create a script to block calls between the sub-areas, I mean, I don't want to, for example, that sales of subarea may call for subzone Marketing.
I do not have different Alias prefix, the prefix aliases are the same in the two Subzones, is possible to block call due to the IP address or the name of the subfield?
In the CPL extensions xsd file and the XSD of CPL file I have found no topic block by IP address or between subzones.
I could find the following example script:
*****************************************************************************************+
"xmlns:TAA ="http://www.tandberg.net/cpl-extensions"
"" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance"
xsi: schemaLocation = "urn: ietf:params:xml:ns:cpl cpl.xsd" >
*******************************************************************************************
But only to block calls between DefaultZone and DefaultSubZone.
Thakns in advance.
Best regards.
Hello
at the time where the CPL is treated, the location of the destination device is not yet known, and we cannot therefore CPL decisions based on the zone of destination or of the subzone.
To work around this problem, you can for example use a prefix/syntax unique to each subarea, so that you can identify implicit destination/subzone area according to this prefix/syntax.
It would be also possible to 'outsource' this decision-making process with the use of political Service, which is a service area that can be highly customized. The external policy server could for example have a SQL database containing information on all your devices and their associated area/sub-area and base its decisions on the information which includes the VCS on the pseudonyms of source and destination for a given call, as well as a variety of other measures.
http://www.Cisco.com/en/us/docs/Telepresence/infrastructure/VCs/config_guide/Cisco_VCS_External_Policy_Deployment_Guide_X7.PDF would be a great starting point if you want to deepen the policy Service.
Hope this helps,
Andreas
-
Hello friends,
My requirement is
I want to create a table. Presents some columns to display text.
so my question is,
What is the difference between a Standard report column and display text (escape special characters) in the attribute column property?
Kind regards
Arianne.
Hi ujwala1234,
ujwala1234 wrote:
Hello friends,
My requirement is
I want to create a table. Presents some columns to display text.
so my question is,
What is the difference between a Standard report column and display text (escape special characters) in the attribute column property?
Kind regards
Arianne.
Here is the difference:
- Standard report column: this is used when your column in the SQL query returns the HTML markup. For example the query SQL with APEX_ITEM API columns or columns where you have mixed data in the column with the markup. In short, APEX rendering engine treats the column as HTML markup and analysis accordingly to display the required HTML element.
- Display text (escape special characters): this type analysis the column data in the form of data stored in the database (no HTML). During analysis if the data contains special characters then it escapes and displays the data.
Yes, you can mix the manual in the form of built on APEX_ITEM with normal standard report (display text) columns.
I hope this helps!
Kind regards
Kiran
-
Number data type used on a date column
Hi Forum,
I have a table with one column defined as number type.
This column contains the date information and has an index defined on it.
When I issue a select statement on this table based on this column for over 5 years of data, the query takes a long time.
Select count (*) in x if date = 20070411
The query takes a long time.
such a situation is causing a problem when the where clause on a date, but the field filters is defined has a number type.
All the columns in this table are defined as non-unique, but the date column seems to be more selective.
Just curious to know if this type of data can have any impact IE do not provide the correct information to the optimizer etc.?
Thanks for any help or advice
Hello
user3206995 wrote:
Hi Forum,
I have a table with one column defined as number type.
This column contains the date information and has an index defined on it.
When I issue a select statement on this table based on this column for over 5 years of data, the query takes a long time.
Select count (*) in x if date = 20070411
The query takes a long time.
such a situation is causing a problem when the where clause on a date, but the field filters is defined has a number type.
Yes; You can count on having a lot of different problems, if you are storing information on dates in NUMBER of columns. The columns DATE to the date information.
DATE is also a keyword from Oracle, so it's a very bad name of a column. Use a column name as entry_date or date_column instead of just date.
All the columns in this table are defined as non-unique, but the date column seems to be more selective.
If
date_column = 20070411
is the only requirement, and it is slow, then it seems that you do not have an index on date_column, and you need to create a.
For all performance issues, see the FAQ forum:
Re: 3. how to improve the performance of my query? / My query is slow.
Just curious to know if this type of data can have any impact IE do not provide the correct information to the optimizer etc.?
It doesn't look like this problem is caused by using the wrong type of data. Many others will, however.
Maybe you are looking for
-
After using recovery system (Windows XP), cannot get .NET 3.5 to install windows update. Error code 0 x 643. 'Fix it' will not work after trying to install it. Tried all other suggestions. Had 4 technicians not trying fix - no chance. Problem cou
-
Tried to reinstall XP with Microsoft Certified intallation disk using the original key code. But the installer refuses to recogize my valid original key code. How can I "force" the program to accept the code and/or how to circumvent the code and re
-
I recently got my samsung laptop wiped to speed it up and it has updated since windows xl to windows 7. However when I now click on my wifi tab windows security pop with the "network authentication - please enter your credentials" and ask for my user
-
Smartphones blackBerry with wifi at home
We don't have 3 g in our region. If I want to connect to my home WiFi, should I get out the check to [disable] "mobile network" AT & T and have only a selected Wi - Fi connection? Thanks for all the time!