Capture the date value in the variable descending in BI Publisher?

Hi all

can someone help me with the syntax to capture the value of variable with sorting on a date field with in descending order.

example: I have the Date field.

JANUARY 1, 2015

FEBRUARY 1, 2015

March 1, 2015

so according to the above date lists sorted in descending order are January 1, 2015. So the syntax I want something like first sort on Date in descending order and it should appear in the variable.

Thanks in advance,

Kind regards

Joes

It is unclear what you want

I have the Date field.

JANUARY 1, 2015

FEBRUARY 1, 2015

March 1, 2015

so according to the above date lists sorted in descending order are January 1, 2015.

But what's in the xml data?

you want something to sort and print report

or

you want to have the table for sorting or sorted table variable

?

Watch How to compare with the previous value?

by variable

Tags: Business Intelligence

Similar Questions

  • Capture selected vales of Date dates invite you using the variable of presentation

    We have an obligation to display the date on the text of the report / whatever the user selects the date from the command prompt.
    We have a date called created and used operator is between.
    Can someone help me in this area, the use of variable presentation to capture the values of a single Date column of creation?

    In the criteria to add more than 2 columns for Date of creation
    and use these expressions foreach and hide them
    MAX (RMAX (creation Date))
    MIN (RMIN (creation Date))

    In your story view we will call @1 and @2. assuming that these 2 columns are first from left to right.

    No need to use variables of the presentation.

    Mark as correct

    Thank you

    Published by: Srini VIEREN on April 22, 2013 16:47

  • How to change the value of string clustered, to implement using the node value of property instead of writing directly on the flow of data or using the variable

    new to labview :-) and I have a problem when I want to change the value of a string in bunches, and I want to implement this using the node value of property instead of writing directly to the stream or by using the variable, enclosed is the picture.   No matter, I have change in cluster (control) or value of Popery out (indicator) cluster, the value (sensor 7) dataflow keeps unchanged even I gave the new value by value of property node. Thank you to give me some advice about this.

    Hi GerdW

    Thanks a lot for your answer. The reason I'm stubbornly tring to break the flow of DATA is: we have a test system that have about 100 screws, they have a few connected flow, some of them will be unbundling a cluster dataflow chain to check the value in order to make the different cases.  Now I want to insert user event by changing the control and influential cases during run time.

    As I initially uses a global variable (to control cases) instead of unbundle string data flow, it works well.  But then, I found there are a lot of screws that are using the string unbundle.  One of the 'lazy' means, I tried is to change the value via the property node (because that way, I did not need to find all the places where using the unbundle string and replace them with the global variable), then I noticed a problem with "dataflow", the value in the stream of cluster in fact will not be changed by changing the value of the property node.

    I did a test with VI simple (like the picture in last post), and after reading your advice, I tell myself that I need to understand the concept of "DATAFLOW" in labview, it seems that my "lazy" way can not work in this scenario.

    I have attached the criterion VI here, have you furthur suggestions on what I can do in this case?

    Mant thanks!

    Minyi

  • Creating a variable that contains the value of the variable system (Long) Date of change

    Can someone tell me how to write a script to create a variable named DocDate, which contains the value of the variable of system (Long) Date of change? Or write a script that creates a variable named DocDate, which contains the current date? I can't find a lot of documentation on scripting ExtendScript.

    Hi Julee, when you create a user variable in the interface, you cannot include the building blocks of time in the definition. They can only be used in system like the System Date of Modification (Long) variable variables. So the question is, why not just use the variable Date of change (Long) system in your document? What is the purpose of the variable user DocDate? Let me know what you think here, and I can try to help you.

    Here are some ExtendScript resources:

    My blog: FrameAutomation.com | FrameMaker, faster and more effective to

    Debra Herman blog: Extension of FrameMaker

    The large samples of Russ Ward: FrameMaker ExtendScript samples - West Street Consulting

    -Rick

  • Double click and get and store the value in the variable.

    Hello

    It is my intention when I double click on a particular record on a table, I want to enter or store the specific record value in a variable and call this variable in the print/preview PLSQL code button.

    Below, I show the screenshot that contains a preview in the form of table and print button. After filling in the data. user double click the code officer LC354 and click Print Preview/mode button, it should display the report for only the
    Code of the agent of LC354(it's what I want). But normally when I click Preview before printing it affects wil see the report of the code of the agent of LC354 and LC325(which I don't).

    http://ImageShack.us/photo/my-images/811/printpb.PNG/

    My problem is how to capture the value ((*LC354*)) particular registration after double click the code(*LC354*) agent?

    I tried to store the agent code in the variable AG_CNT in mouse double click trigger with after the plsql code. but it dosent work.
    declare
    AG_CNT varchar2(10);
    begin
    *AG_CNT* :=GET_ITEM_PROPERTY('RFQ_AGENT_DETAILS.AGENT_CODE',CURRENT_RECORD);
    end;
    After that pass this AG_CNT value in *: AG_CODE *. the code below is in the Print/Preview button.
         cursor c1 is select nvl(count(ENQUIRY_NO),0) from scott.EXP_QUOTE_STATUS 
         where ltrim(rtrim(upper(job_status))) like 'APPROVED%' and ENQUIRY_NO = :REQ_FOR_QUOT.ENQUIRY_NO
    AND AGENT_CODE=*:AG_CODE* ;
    How to do this?

    SKUD.

    Hello

    When you click a folder, the focus moves to that record. To get the values of each element, just use the standard:

    :value := block.item ;
    

    François

  • How to control the value of a variable that is shared at the beginning of the vi

    Hi all

    In short: How can I make sure the values of the variables shared at the start of a vi?

    I have two vi.

    One is a main vi where did I order a shared Boolean variable "run DAQ".

    The other is a vi with a while loop that "polls" for the shared variable "Execute DAQ", which is connected to a box Structure. If the case is false, it does nothing, if it is true is short some simple IO DAQ within a while loop.

    To be sure that at the beginning of the vi the variable 'Execute DAQ' shared value false (no matter what 'State' the shared variable was left in front of the vi began) I write a Boolean constant to this shared variable 'Execute DAQ' out of hand while loop.

    Now my question: how is it possible that the case structure can enter into the 'True' State, even when main vi is not executed and there is therefore no way of the shared variable can be written in. I know that shared variables are stored in memory, but that's why I write it to false at the beginning of the vi.

    Even when I read the first shared variable before you change it with a constant False the second instance of the shared variable that is wired to the case structure bed to True.
    It seems to me that the shared variables do not follow the 'right' of the dependence of LabView and are updated outside the normal flow of the vi.

    Thanks for your time and advise on this.

    JackT wrote:

    Someone knows another way around this?

    Yes.  Do not use them.

    If you not post on a network, use a normal Global Variable or use a queue, the user event, stating to send commands indicating loops for updating their values.

    If on a network, then I recommend the network stream to send commands/data back with updates.  I used shared variables, more I hate them.

  • Get the current value of the variable when reaching CNVCreateSubscriber

    I use CNVCreateSubscriber () to create a subscription read to a network Variable: whenever the value of the variable changes, the DataCallback is called and I'm able to get the new value of the variable.

    But how to get the value of the variable when a subscription is created?

    I read in the help CNVCreateBufferedSubscriber () returns this information, but I wonder if using CNVGetDataFromBuffer () in a polling loop has the same performance as the approach to DataCallback of CNVCreateSubscriber ().

    In addition, the dataStatus (CNVGetDataFromBuffer) parameter is different for different Subscribers? (that is if I have multiple subscribers, CNVStaleData is related to the specific Subscriber or is a global property of the variable)?

    CNVData data;

    CNVGetConnectionAttribute (customer, CNVMostRecentDataAttribute, &data);)

  • Gettting ODI-17511: no value to the variable. ?

    Hi all

    I am facing an error when executing a Package to load all dishes unique to Oracle DB folder files.

    The thing is that I am able to load data but it's operator error display "no value to the variable ' MULTI_DEMO." "File_name'"

    Details of my project are:

    PROJECT_NAME: MULTI_DEMO

    Name of the interface: MULTI_TEST

    Have 5 text files in my folder of the source code. and the target is created as the same schema as the source

    variables: filename, County, Files_Count

    statement = file_name

    DataType: alphanumeric

    Keep history: last value

    Request used:

    SELECT FILE_NAME FROM (SELECT FILE_NAME, SRC_FILE_DETAILS RN ROWNUM)

    WHERE RN =' #MULTI_DEMO.count '

    statement = count

    Data type: digital

    Keep a history: last value

    Request used: nothing

    statement = Files_Count

    Data type: digital

    Keep a history: last value

    Request used: select count (*) in SRC_FILE_DETAILS

    I have clearly chosen patterns appropriate for the two variables with queries.

    in the Package diagram:

    step 1: count = 1 assign (type: set variable) {-> File_Name and failure success: END}

    step 2: filename (type: Refresh variable) {-> multi_test success and failure: END}

    step 3: multi_test (type: flow (interface)) {success-> count and failure: END}

    step 4: count increment = 1 (type: set variable) {success-> Files_Count and failure: END}

    step 5: Files_Count (type: Refresh variable) {success-> count and failure: END}

    step 6: County (type: evaluate the variable) is operator " > = " value is "MULTI_DEMO.count" {success-> File_Name and failure: END}


    Please find below the picture for flow diagram

    loop.png

    I have changed the stage names, hope you find my reviews.


    Please help me to sort out this error.

    I use OBIEE 11.1.1.9


    The error is in short:


    java.lang.Exception: ODI-17511: no value to the variable ' MULTI_DEMO. File_name'.

    at oracle.odi.runtime.agent.execution.sql.RefreshVariableExecutor.execute(RefreshVariableExecutor.java:70)

    at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:1)

    at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)

    at com.sunopsis.dwg.dbobj.SnpSessTaskSqlV.processTask(SnpSessTaskSqlV.java:410)

    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2637)

    at com.sunopsis.dwg.dbobj.SnpSessTaskSqlV.treatTask(SnpSessTaskSqlV.java:240)

    at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:577)

    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:468)

    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)

    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ 2.doAction(StartSessRequestProcessor.java:380)

    at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)

    at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:312)

    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$ 0 (StartSessRequestProcessor.java:304)

    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ StartSessTask.doExecute (StartSessRequestProcessor.java:874)

    at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:133)

    to oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$ 2.run(DefaultAgentTaskExecutor.java:84)

    at java.lang.Thread.run(Thread.java:662)

    I repeat, "I am able to load data but always error in the last step.

    Thanks a mllion.

    Shakur

  • The Variable value based on the results of SQL query

    With the help of OBIEE 11.1

    Is it possible to set the value of a variable presentation of the results of a SQL statement?

    Scenario:

    I have 2 topics.

    SubjectArea1

    Text1

    Date1

    SubjectArea2

    Field1

    Field2

    UpdateDate

    I have an analysis that uses only the SubjectArea2.

    Using a dashboard quickly, the user must be able to select Text1 in the other topic area (SubjectArea1).

    Assuming that selection will be stored in a variable of presentation (SelectedText),

    The filter in the analysis should be something like

    Upper UpdateDate to @{SelectedDate}

    How can I set a variable (SelectedDate) using a SQL statement?

    Something like this:

    SELECT "Date1" TO "SubjectArea1" WHERE "Text1" = @{SelectedText}

    So the command prompt text selection should give a date that is used to filter the second review?

    If so:

    The prompt on SA1.textCol

    hidden analysis who is invited on SA1.texCol has SA1.dateCol in the criteria

    Analysis SA2.dateCol is filetered on basis of the results of another analysis (any value analysis hidden SA1.dateCol)

  • Value of the variable of LMS

    My variable of user customized course users and it is important that its current value is stored in the LMS when the user leaves the course, but no matter, I make only the initial variable value is stored (when I check the LMS the value that appears in suspend_data is the initial value).

    I joined the variable in the scene to be sure which is the value, when you exit the course and do not rely on the output.

    Is there something I need to do to get the stored value for the LMS?

    I think the question can be suspend data.  SCORM 1.2, I think that you are allowed to 4000 bytes.  CP uses a lot of it.  If you have more than 100 pages in your cptx, you can already invade this limitation.

    Try the SCORM 2004 edition (which allows 64 000 bytes to suspend data I think) and tests in the clouds of SCORM.

    If that works, you can be sure you're overtaking of SCORM 1.2 suspend the limits data.

  • To loop through all the values of a variable in ODI

    Hi all

    I have a table table1 with date fields in this

    Thus, the table will be something like

    Date_column

    January 1, 2014

    JANUARY 4, 2014

    JANUARY 5, 2014.

    I have a variable var1 declared in my project, which can take the values in this table.

    So the definition of the updating of the variable var1 is

    Select from table1 date_column.

    Now for each of these dates, I have to run a script, the script takes value of var1 date as a parameter.

    This must be run in a loop so that all the dates in the table may be covered.

    Could you please how this can be achieved in a package in ODI.

    Be able to find the solution for this: thanks to all the other post that helped me to get the solution.

  • Parameter IN or OUT to missing index: 1 using the variable date ODI.

    Hello

    I created the variable of data type date as EXTRACT_FROM_TS and also the default value for this.
    Now I use this variable as a filter in the source table in the design of the Interface as below...
    LAST_UPDATE_DATE > = #p_extract_from_ts where LAST_UPDATE_DATE is the field in the source database with date data type not null not forced...
    I have lkm hv used SQL for Oracle...

    Above variable refresh and interface scenario running one after another in ODI package...
    Variable gets refresh every time successfully, but Interface fails at the step of loading data... error message as below...


    ODI-1227: SrcSet0 (load) task fails on the source of ORACLE R12DEV connection.
    Caused by: java.sql.SQLException: parameter IN or OUT to missing index: 1
    + oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(OraclePreparedStatement.java:1890) +.


    If we remove the filter LAST_UPDATE_DATE > = #p_extract_from_ts, then it works well...

    I do not know why this error pops up on adding filter... Please help on this...


    Thank you
    Roshan Y

    Hello

    put a step DECLARATION above all. After that in my opinion, it is better to put a TO_CHAR().

    Try putting your variable in text mode and change your filter in

    TO_CHAR (LAST_UPDATE_DATE, 'YYYYMMDDHHMI') > = TO_CHAR(#PROJ.) P_EXTRACT_FROM_TS, "YYYYMMDDHHMI")

    In your operator if you click on the variable whose value you see?

  • The wrong data type on bind variable

    We are testing framework entity with ODP.NET and linq to entities and have a little problem.

    We run a simple linq to entities statement with a variable binding and our problem is that the column in the oracle database is the CHAR type framework but entity sends the binding as NVARCHAR2 variable. This causes the oracle do not use the index on the column and a full table scan is performed.

    Entities are generated from the database.

    LINQ:
    public string Name (string value)
    {
    var object = (from s in ctx3. TABLE
    where s.COLUMN1 is value
    Select s.COLUMN2). ToList();
    Returns the object [0]. ToString();
    }

    Is there a way to set the data type for a variable binding when you use linq?

    Published by: 872217 on March 13, 2012 04:42

    Because the .NET string is in Unicode, by default, NVARCHAR2 is used in the binding of parameter to string variables.

    EntityFunctions.AsNonUnicode (of use) should be able to say ODP.NET you want to treat a non-Unicode string.
    In this case, VARCHAR2 should be used for the link.
    I hope this will save for you table scan when there is no conversion data more.

    using System.Data.Objects;

    public string Name (string value)
    {
    var object = (from s in ctx3. TABLE
    where s.COLUMN1 is EntityFunctions.AsNonUnicode (value)
    Select s.COLUMN2). ToList();
    Returns the object [0]. ToString();
    }

    Please let me know if it works for you.

  • Assign the numeric value of Substitution Variable?

    What I try to do is:

    Read a CSV file via the unix shell and choose some columns in each row
    Transmit the data to a MaxL Script
    Assign the data passed to substitute variables in the MaxL script.

    Problem:

    Two of the columns contain digital data (for example: 0.5 or 60 etc..) I want to set the substitution variables in these digital data (without the quotes). I tried to use

    Edit the < app and cube name > database variable 'Variable' $1;

    but it gives me error
    ERROR - syntax error 1242021-1 ['. 5']
    I tried with quotes single and double, but they value the value of the variable $1

    If I manually set the value of this Variable through the Regional service to 0.5, everything works perfectly. Any ideas on how to do this? the Ser60 does not provide a solution.

    An example is

    startMaxl scriptname.mxl "0.5"

    alter database appname.dbname set variable "VariableName" $1;

    or

    startMaxl scriptname.mxl 0.5

    alter database appname.dbname set variable "VariableName" ' \'$1\' ";

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • How to capture the value of the element in the success of the process message

    Hi friends,

    I need to capture two of the content of the element in the success of the process message.

    These are the elements

    *) course_name
    date *)

    To do this, what I did is,

    I created two timely hidden

    *) dis_course_name and *) dis_date

    For these hidden point two, I give: sql returns a single value and I gave the following query

    For dis_course_name
    select course_name from training_attendance_table
    where course_name=:P1_COURSE_NAME
    For dis_date
    select on_date from training_attendance_table
    where on_date=:P1_ON_DATE
    After I wrote a process to capture the hidden question contained in the message, and that's what follows
     begin
    apex_application.g_print_success_message := 'Your Attendance for the' ||'<span style="color:orange;font-weight:bold">&P1_DIS_COURSE_NAME.</span>'||' '|| 'Training session on'||'<span style="color:orange;font-weight:bold">&P1_DIS_DATE.</span>'||' '|| 'is Confirmed';
    exception when others then
    apex_application.g_print_success_message := 'Your Attendance for the' ||'<span style="color:orange;font-weight:bold">&P1_DIS_COURSE_NAME.</span>'||' '|| 'Training session on'||'<span style="color:orange;font-weight:bold">&P1_DIS_DATE.</span>'||' '|| 'is failed to Confirm';
    end;
    But the above seemed to work, as it was not capturing the content of the element in the success message, shortly after pressing the submit"" button.

    element content in the sense what he calls means, it refers to what im going for this element into the form

    I need to get the following in the success message
    Your Attendance for the *<course name>* training session on *<date>* is confirmed 
    Waiting for the solution.

    Kind regards
    Mini

    Try this.

    Your presence to the & P1_COURSE_NAME. training session on & P1_ON_DATE. is confirmed

Maybe you are looking for

  • Jersey 2 Trackpad sensitivity

    I was unable to find a way to resolve the "one finger click" on a box just out of the Apple Magic Trackpad 2 that I bought with a new, end of 2015 the iMac retina.  After anticipating the joys of the use of any force touch multi-geste on the new mtp2

  • HP Pavilion g7-2043sf: Windows could not find a driver for your network card

    Model: HP Pavilion g7-2043sf Product number: B1P51EA #ABF Today, I did a clean install of Windows 7 on this laptop and I can't connect to internet via wifi. When troubleshooting I get this message: Windows could not find a driver for your network car

  • Port for uTorrent - WRT54GC

    Hello I need further assistance. I want to free ports for uTorrent. I have a router WRT54GC. I successfully logged in and clicked on Applications and games, and I think that there should I typed port in tab Port range forwarding. Given that I'm not g

  • Error code 0 x 80070052

    OK, so I have most of the things I've read on how to do this, but none of it works. Currently, I'm putting a CD I got for my birthday on my computer so I can put it on my phone that has an MP3 player on it. I do what I've done previously (computer, m

  • What Pocket media drive model is compatible with my PC D5000t?

    HP Pavilion Elite d5000t ATX customizable Desktop P, windows 7, is a media player of Pocket still available for this model and if so what is the model number?