In the presentation variable date format
Dear Guru,My guest has a calendar month edit box that is in the format "YYYY / MM". I put this as a variable presentation p_month.
Now, I need to add 1 month to this presentation variable in the filter, I tried to write the sql code but it's complicated, and it does not work. Could someone help?
Thank you very much
Joe
An approach more:
using filter based on another request...
create a query containing the following columns... (Assuming that YYYY / MM column is: A).
Min (A)
"and keep the filter on A > ' @{p_month}"
Save this report with a name: RapportB
Your main report on A filter should be like this:
filter on a column > advanced > filter based on another request, now browse the RapportB and then to specify the unique column present in this report to be filtered...
hope you understand this approach...
Tags: Business Intelligence
Similar Questions
-
Variable Date format of presentation
Hi all try to format a variable presentation from a Narrative perspective, is it possible that this can be done by using javascript or html that I can stick in narrative mode.
I want something like ' the date used is @{indate} to the end of the month.
Date format must also be JJ.mm.aaaa... his currenty displayed as yyyy/mm/dd... I don't want to add the columns in my report and hide as there seems to be a performance lag when I do this.
Any ideas... Java gurus out there.
I tried @{indate} [dd.mm.yyyy..] but it does not work.
See you soon
Jenny
Published by: user5470064 on August 18, 2011 09:58
Published by: user5470064 on August 18, 2011 09:59Here you go...
I tried in my machine and its working very well...
In the answers--> in the criteria TAB, in the column fx use under formula...
«case when 1 = 1 then EVALUATE ('TO_CHAR(%1,%2)' as a varchar (20), date ' @{pv_date} {1998-07-05} ',' dd.mm.yyyy "") else ' ORE time Dim ".» End of the name of the month.
pv_date is the variable of presentation and
For "ore time Sun. "" MNTH name ' use any column of varchar data type ...
Hope that's helpful...
Thank you
Ashish Gupta -
Can I use the session with the presentation variable variable
Hello
I'm using a method join the variable session or repository with the presentation variable.
I created a variable called 'VarPres' in obiee presentation I created a session with a new block of initialization variable and I made this request
"{Select fullName from employees where idEmp=@{VarPres}.
but when I called the session variable in obiee I got this error
The session variable, NQ_SESSION. S_OBJ, has no definition of value
Hello
Does not allow a presentation in an init block variable, simply because there is no variable presentation.
In general what you try to do probably will never work because of "timing" and is as a session variable.
A session variable is set once per session, for once he put no exchange of value as the init block is not executed again. So, because of this you already can imagine that there is a problem in your logic, if you want to use a value set by the user in the front end to set the value of a session variable.
-
By the way the presentation Variable in the Case of the ReportColumn statement
Hi all
I have I need to pass the presentation column that contains the date value in the column of the report which is to be set to zero in this requirement.
That is to say the case statement is like that
where column1 is null then 'variable presentation"is the value of the column.
someone you will suggest how to pass the variable to the presentation to the column of the report.
Thank you
Yogi.Check the data type of the column 'time '. ' ' count of the parent.
the properties of column ROM-> data format
I guess his type of tank, if yes, then
cases where "Time". "" parent effective ' is null then ' @{parent_effective_from}' another 'Time '. "" end of parent from to.If the date is set then the default
cases where "Time". "" parent effective ' is null then @{parent_effective_from} {default} else 'Time '. "" end of parent from to.or else try as below
Date ' @{parent_effective_from} {2010-01-21}'Published by: Srini VIEREN on 12 April 2013 13:24
Try other options as stated above
Published by: Srini VIEREN on 12 April 2013 13:27
Published by: Srini VIEREN on 12 April 2013 13:33
-
The use of the repository variable date in filter expression
Hi gurus
I get the error using repository variable date in filter expression. I use the formula below
filter (with the HELP of Fact.calls"Sun Time".) ("' Fiscal months end date" = VALUEOF ("month_start"))
I am getting below error
The formula syntax is not valid.
[nQSError: 10058] A general error occurred. [nQSError: 43113] The message returned by OBIS. [nQSError: 22024] A comparison is performed between incompatible types. (HY000)
Publ. SQL: SELECT filter (fact. Calls by using "Sun Time" ". Fiscal months end date"= VALUEOF ("month_start")) 'call DATA.Then I tried the below format I still get the error
filter (with the HELP of Fact.calls"Sun Time".) "" Fiscal month end date "= DATE'(VALUEOF ("month_start"))") "
The formula syntax is not valid.
[nQSError: 10058] A general error occurred. [nQSError: 43113] The message returned by OBIS. [nQSError: 46047] DateTime (VALUEOF("month_start")) (VALUEOF("month_start")) value does not match the specified format. (HY000)
Publ. SQL: SELECT filter (using "Sun Time" Fact.Calls. ("' Fiscal months end date" = DATE '(VALUEOF ("month_start"))') 'call DATA.
Please let me know what I'm missing or what is the correct syntax of same using the repository of date variable.
Thanks in advance
Concerning
@li
filter (with the HELP of Fact.calls"Sun Time".) ("' Fiscal months end Date" = CAST (VALUEOF ("month_start") date))
Try this
mark, if this can help
-
in the oracle system date format
Hi expert,
in our oracle date format is "mm/dd/yy", here in an application table, we got more fields:
ACCOUTING_FROM_DATE ACCOUTING_TO_DATE
28/1/13 1 / 01 / 00
could you please tell me what date is ' 01/01/00 '?
and how to change the format of oracle data without affecting the system?
Thank you very much1001197 wrote:
Hi expert,in our oracle date format is "mm/dd/yy", here in an application table, we got more fields:
ACCOUTING_FROM_DATE ACCOUTING_TO_DATE
28/1/13 1 / 01 / 00
could you please tell me what date is ' 01/01/00 '?
No.; This is one of the reasons why the 2-digit years are a bad idea.
and how to change the format of oracle data without affecting the system?
To change the default format for all DATEs in your session:
ALTER SESSION SET NLS_DATE_FORMAT = 'fmMM/fmDD/YYYY';
This affects only your session; It will not affect other users in other sessions.
Regardless of which is the default format, you can display a single DATE in a format with TO_CHAR
SELECT TO_CHAR ( accouting_to_date , 'fmMM/fmDD/YYYY' ) AS a_to FROM table_x ;
-
How do I get the text of a JEditorPane with the updated rtf data formatting?
I want to store the contents of a JEditorPane with rtf data in the database so that I can recover again and show it on the JEditorPane exactly as it was created first. To do this, I need real rtf, not only the text data.
If I use jEditorPane1.getText (), I get null.
Finally, I found jEditorPane1.getStyledDocument .getText () (0, jEditorPane1.getStyledDocument () .getLength ()) which returns the text, without any formatting.
I need the text with the rtf formatting codes to keep the formatting.
Any ideas?Through the EditorKit.
-
In the results pane date formats
I am troubleshooting a data corruption issue, and I need to see year-round in the developer sql results pane. When I issue a select statement on a table dates in the format DD-MON-AA results pane. Is there a way to display dates in the format DD/MM/YYYY.Hello
You who control with tools | Preferences | Database | NLS | Date format. Alternatively, a spreadsheet on your connection, just run
ALTER session set nls_date_format = "DD/MM/YYYY";
The alter session actually overrides the preference setting and applies to all spreadsheets shared for the connection and also includes the results of the data object browser tab.
Kind regards
Gary Graham
SQL development team -
I want to format the date value that is in a variable (date_var) to MM-DD-YYYY format and print in a document.
< td >
#DateFormat(#date_var#, 'MMMM DD,YYYY') # does not work
< table >does not work.
How can I do?
Please try this...
<>
var_date = now() >
<>
var = "" #t # ">"
<>
overwrite filename = "d:\testdate.pdf" = 'Yes' format = "PDF" > "
#t #. -
Use the presentation Variable in the calculation of the Pivot
Hello
I have a calculation of pivot. In this calculation, a value must be dynamic and is enrolled in a prompt dasboard.
Does anyone has an idea how can I access a variable of presentation in a calculation in pivot?
I tried with @{nomvar} but that generates an error. OBIEE does not know this syntax in this context.
I thank very you much for the suggestions.Please see the thread below:
-
In the command prompt date format
I have a prompt that displays date in format dd/mm/yyyy. Entry of Calendar.js is also in the same format. The line works well, but on some machines it is throwing error because he takes a date in the format dd/mm/yyyy. Although it is not dependent on the client machine, but this error happens when the time windows is defined as dd/mm/yyyy. When I discovered the source of the generated report it shows-
"< script language ="JavaScript"src="res/b_mozilla/calendar.js "> < / script >
< script language = "javascript" >
var nqdfmt = "MMDDYY";
but on other machines, it works very well and watch var nqdfmt = "DDMMYY"You must restart the services after changes...
-
Where are the separate variable data stored?
Guys,
Nobody here knows not where are stored the data for separate variables?
I'm doing some research in my environment to know the capacity for the application process and I need to count the use of variables separated from my database.
Any help is appreciated.
Kind regards
LuizHello Luiz,
Separate instance variables are stored in the table "PDETACHEDFIELD" of the engine.
Dan
-
Completely disable the presentation of data
Hello
I set the following preferences:
user_pref ("datareporting.healthreport.service.enabled", false);
user_pref ("datareporting.healthreport.uploadEnabled", false);
user_pref ("datareporting.policy.dataSubmissionEnabled", false);
user_pref ("toolkit.telemetry.unified", false);Yet, Firefox 40.0.2 has created a new folder "datareporting" in my profile folder and continues to add new elements to it.
How can I completely disable Data Reporting?Thank you.
-
The use of quotation marks in the parameter variable data
Hey, I have a question very confusing, I'm with headaches, already, hour I google itand nothing...
Here it goes...
1. I had a procedure that receives the ID setting
2. then, I use it to make a few requests in other tables
3. but, when I go to the query in the data element of this ID, it returns me a large amount of data which are not of this ID.
I've done some tests and I realize that when I do this:
DECLARE
V_ID VARCHAR2 (200): = 35100345580693000762550010000276180000407450;
BEGIN
FOR RS TO (SELECT * FROM TABLENAME TN WHERE TN.ID = V_ID) LOOP
INSERT INTO A1 VALUES (RS. PROD_COD, RS. (UN);
END LOOP;
COMMIT;
END;
She sends me all THE IDs!
But when I put quotes in the value, like that!
DECLARE
V_ID VARCHAR2 (200): = '35100345580693000762550010000276180000407450';
BEGIN
FOR RS TO (SELECT * FROM TABLENAME TN WHERE TN.ID = V_ID) LOOP
INSERT INTO A1 VALUES (RS. PROD_COD, RS. (UN);
END LOOP;
COMMIT;
END;
It returns the correct lines, but there is a problem, the ID will come from setting, so how can I solve this?
To be more precise, the type of the ID column is VARCHAR2 (50), maybe this might help...
Published by: Nylson on 27/04/2010 03:51T it?
I already showed above that pass the parameter a string, it does so without rounding, but passes the parameter a large number which must be converted to a string first, you're going to get some flare at 38 s.f. going on.
You need to make sure you pass a string in your procedure, rather than a number, if you want to get your code transmitted intact. It is the only way to avoid the implicit flare.
Otherwise, could you relook at your application design - why you store these large ID in the first place? If it is a concatenation of several things, why not just break down the numbers and add them in separate columns?
-
Date show invites by using the calendar and presentation Variables
Hi all
That's what it takes...
I need to create a two prompts (from_date and to_date) on a date column so that I can filter the data by using a condition. This is how I do
I created two guests (edited the formula) and passing values to two variables var_from and var_to presentation. In the report, I limit the query on assistance between motor coaches for both the presentation variable. Everything works fine but the problem is I need display var_from and var_to in my report also.
I'm referencing variables like ' @{var_from}' and ' @{var_to}' but I get two columns as white. I don't really know why I get empty values for these two columns only when I am able to filter my report with success on the basis of the date values in the guests...
Just to metion... in my database, I have values in m/d/yyyy format only. So I am able to use the calendar successfully
Any help on this would be much appreciated...
Thank you
-RonnyRonny,
Drafts of answers do you see? ID wait, but on the dashboard when you set filters, you should see values that crosses?
You can extend the syntax of the variable closely and provide a default value, so when you work in the answers you can see what it looks like,something like @{var_from} {January 1, 2010 ""}
Also you can reference variables in the title, the subtitle or the narrative views if you want.
Maybe you are looking for
-
iOS 10 Safari / JavaScript bookmarklets
I have not updated to iOS 10 again. Before that, I would like to know if Safari still allow JavaScript bookmarklets in iOS 10? (For the community, there was no Safari for iOS or any community for iOS in general applications.)
-
Hi all, I've had this laptop for over 4 years now and the problems started about a year at the time where the laptop started to close shortly after throwing a heavy game. Since then, it has progressed to the point that its closure when I run any game
-
Windows XP SP3. When copying pation in anothr partition, error message is behined of writing disk failed. Close the Windows Explorer for sure keeps your computer. All data may be lost.
-
Unable to connect to my server through my laptop using the selections of my network places.
I can't connect to my desktop (server) via my laptop using the selection of my network places, even if the shared my cell phone directories are available from the desktop (server). Any ideas on how I can fix this?
-
Cannot open files pps or ppt on Outlook Express
Hello!! Cannot open the attachment .pps or .ppt from outlook express. Thank you.