Discoverer Plus - DECODE of last 10 transactions or last 10 days of my data

Dear All
Anyone can help me of the below reqeust (DECODE Syntax)
I need to create a report to get a specific number of transaction or days.
Eample 1: Last 10 transaction (Base column will be transaction key number)
Eample 2: Last 10 days (Base column will be transaction date)
Further explanation: We might need to get a sales report for the last 10 invoices issue in the system. So, I can add in the parameter 10 and will get the last 10 invocies or to add 20 and will get last 20 invoices. Or, we might need to get a sales report for the last 10 days invoices issued. So, I can add 10 in the parameter and will get the last 10 days invoices issued. etc.
Warm regards
Mr. Zuhair Fardan
Kingdom of Bahrain
Email: [email protected]

Dear Mr. Zuhair Fardan
I think it must be warm where you are and it is good to see you in the forum. You can do as you suggest using parameters but it would not be a DECODE.
You could create 2 parameters: one called TrxType and one called TrxQty with neither associated with anything in the database. You would associate them with <None>
The prompt for the first one would be: Do you want to query by date or by invoice? Your uses should enter D for date or I for Invoice
The prompt for the second one would be: Enter the quantity
You next build a Boolean condition like this:
:TrxType = 'D' AND InvoiceDate >= SYSDATE - TO_NUMBER(:TrxQty)
OR
:TrxType = 'I' AND InvoiceNumber >= max invoice number - TO_NUMBER(:TrxQty)
The tricky part of the above could be determining what the current invoice number is but presumably you already know how to do that.
Hope this helps
Michael

Similar Messages

  • Extract data on report between last 30 days from current date.

    Hi Experts,
    Ealrier i had provided user promt to select the date range, now i need to schedule the report for this i have to set the date between last 30 days from current date.
    How can i add this in formaula on record selection.
    before:
    {pm_process.pm_creation_date} in {@Start Date to UTC} to {@End Date to UTC}
    I tried:
    {pm_process.pm_creation_date} in CurrentDate() - 30 to CurrentDate()
    But this is diplaying me only data of 30th date from current date.
    Please advice.

    Hi Brian,
    Thank you!
    1. I have not created any function for {pm_process.pm_creation_date} in [CurrentDate() - 30 to CurrentDate()] i am just adding this on Record Selection and its not helping.
    2. {pm_process.pm_creation_date} in Last30Days; this is throwing below error.
    please advice what to be done?

  • Discoverer Plus Automation- Extract data from Pac2K and fill in Excel 5 min

    Hi,
    I am new to this tool. I have zero knowledge on this tool.
    I got a requirement to fetch the data from Pac2K tool for every 10 mins and export to Excel sheet. This should be done using Discoverer plus. I am using discoverer plus web application.
    As it is very difficult to fetch the data manually for every 10 mins, I got a requirement to do the automation.
    So, if you would be so kind, could you please let me know possiblity to do the automation for the above process using the Discoverer plus Web Application.
    If possible please let me know in detail.

    Hi,
    Using the Plus it is not possible to automate the export to excel.
    This can be done using the desktop edition using a command line.
    you can create a batch file and schedule it using any scheduler.
    Tamir

  • Discoverer report - Output from Discoverer plus is not the same as Discoverer desktop

    As a part of Upgrade project we are migrating the discoverer reports from 11i (11.5.10.2) to R12 (12.1.3) .After migrating to R12, for a custom discoverer report the output given by discoverer desktop is correct (24 rows for a scenario). But the report output from Discoverer plus does not show the credit transactions (2 rows). The output from Discoverer plus shows only 22 rows (24 - 2), which is incorrect. The query is the same in Discoverer desktop and Discoverer plus.
    Please let me know why these transactions that are appearing when the report is run from discoverer desktop are not appearing in discoverer plus. Is there any setup in discoverer plus for this?
    Regards,
    Brajesh

    Pretty hard to answer a question like this.  Best bet would be to copy the existing discoverer plus book and start removing conditions, fields, etc until those two rows from desktop show up and see if you can work it out. 

  • Discoverer Plus Business Intelligence Print Format Problems

    I am having a problem with setting the print settings to landscape. Under page setup before printing i set the Orientation to Landscape. The worksheet is printed in a landscape format, but the margins only go halfway across the page (under print preview the report fits on one page). It seems as if the program is taking the potrait orientation and just printing an image of the potrait printout in landscape. Does anyone know what the problem is? Thanks!

    Hi
    Discoverer Viewer is licensed the same as Discoverer Plus. If you have 1 Plus user and 20 Viewer users you need to be licensed for 21 users.
    You can either buy named users or you can buy an unlimited license. The cutover point is 25 users becauses the last time I looked I believe the per user price was $800 and the perpetual was $20,000 per CPU.
    The minimum purchase for named users is 5 so are you absolutely certain that 1 license you have isn't a perpetual license or even perhaps a Discoverer Admin license?
    You should discuss this with your Oracle sales rep who may well be able to get you a better price.
    Best wishes
    Michael

  • Modify Browser Layout of Discoverer Plus

    Hi,
    Is there a way to change the browser layout of Discoverer Plus? I want to have an available list of workbooks area on the left hand side of the browser under available items and selected items.
    Regards,
    Gladys

    Hey Gladys.
    I have seen this 'challenge' so many times before and IMO, it's just plain wrong (sorry about the soapbox).
    I can name companies (although would be shot if I did) from small to Fortune biggies where a 'user group' gets together to decide upon a query tool. Of course that group does not include any consulants who are experts in the field, any IT people who really know all the tools under consideration already, etc.
    So, by some magic consisting of "we used it at my last company", to "it looks really good", to "well they gave me a cool t-shirt", they come up with about 3 tools to consider.
    Then ... they invite all 3 companies in to perform a 'dog and pony' show. Of course, they have to load your machine with glowing examples in a schema just for them that shows how their tool can do absolutely everything in the world plus make a decent cappuccino (sp?). Oh ... and here are your free binculars?, pens?, tshirts?, stickers?, etc.
    So, then this 'task group' comes up with - let's say for fun as this is an Oracle forum - Business Objects.
    Without going into all the detail about costs such as BO groups coming in at lofty hourly rates (all the companies do this) and buying new slam-dunk-2007-unix-capuccino servers, you have BO.
    But then ... and again not picking on BO, just an example ... does it do all you want? Does it interface completely with Oracle like the Oracle product did? What about upgrades ... do they write it for Oracle ... or all databases and therefore not cutting edge like Oracle is 'supposed' to be?
    I learned long ago to:
    1. Pick a toolset and stick with it (ie: Word vs WordPerfect). Just pick one and stay with it until Hell freezes over as they just keep leap frogging each other.
    2. Oracle is not cheap (how do you think Larry can afford to build an Asian mansion or drive a fighter jet?)
    3. Sticking with Oracle if at all possible for everything is the safest solution. Sure they may have a tool that pales in comparison at a particular time, but Larry just pulls out his wallet, throws a few billion into the pot, buys up the competition and years later you're Oracle anyway
    4. try not to have 'user task groups' decide on major decisions like BI tools unless they're are computer technical people (ie: greater than 5 years in the business) AND they're not 'last company' whiners (ie: at my last company we used PeopleSoft and boy it was 149 times better than Oracle)
    Okay, climbing off the soap box ... but that felt good.
    To misquote Clinton ... I feel your 'challenge'.
    Russ

  • OracleBI Discoverer Plus OLAP

    Hi
    I need to use Discoverer for OLAP. I have installed BI and BI Tools, but I have there only Discoverer, not Discoverer Plus..
    I dont understand where can I get Discoverer Plus...
    Please help.
    Thanks
    Marketecka

    Hi Aparna
    You're obviously using Discoverer 4i which uses an older method of connecting. In this method you have to supply the full path and file name of the file being used to launch Discoverer on the URL. You have no choice but to run this path. However, you could create a proxy for it.
    In newer versions the path and file name are all embedded configuration files within the application server, thus you only have to pass a port and the application name. The system then looks in its configuration files to determine the path and which file to run.
    Having to use Netscape rather than IE is one of the oddities of 4i. While the IE connector may well work, it was noticed a long time ago that the Netscape file was far more robust. This is because when 4i was written the version of IE at the time was 6.0.28n pack 1 which could not handle JInitiator very well when called using standard IE commands. Seeing as the IE of the day could run the Netscape commands, the rest is history.
    By the way, as a side issue, you need to upgrade ASAP because 4i is about to be desupported. I place a new posting on my blog last night which might help understand the Discoverer versions:
    http://learndiscoverer.blogspot.com/2006/09/releases-and-patch-numbers-september.html
    I hope this helps
    Best wishes
    Michael Armstrong-Smith
    URL: http://learndiscoverer.com
    Blog: http://learndiscoverer.blogspot.com

  • Has Discoverer Plus for OLAP any future?

    Has Discoverer Plus for OLAP any future?
    It only one desktop product for Oracle OLAP, but no evolution last time and require more functionality.
    anybody tell about?

    The patch number for 10.1.2.3 is 5983622.
    Currently it is available only for Win32 and Solaris. I'm told that it will be available on other ports sometime in April.
    Also a word of warning - 10.1.2.3 does not contain the fixes released for 10.1.2.2 in CP4, CP5 and CP6. There will be a one-off patch released shortly for 10.1.2.3 containing these fixes.

  • Formating URL for Discoverer plus returns an error

    Hello I have been playing around with formatting the URL. In Viewer this is working great with have created one click extracts to excel. However when I try to just create a link to discoverer plus to startup the connections page also pops up. We would like just the discoverer plus app to popup not the connections page. This is with 9.0.4 version. I have tried adding the following
    plus_popup=Fales&framedisplaystyle=embedded
    option on the end but when I do although the connections page no longer shows up I get an error on startup. The error states there is a runtime error has occured. Line 0 Error:'Window.opener.connListPage' is null or not an object' The msgbox asked if I want to debug or not. If I choose no then plus opens fine. My string looks like below. Does anyone know what I am missing?
    http://domainname:7778/discoverer/plus?cn=cf_a110&nlsl=en-us&release=true&_plus=true&plusp_FrameDisplayStyle=embedded

    I doesn't happen on mine, but I'm now on SP3. It might help if you upgrade - even if you don't want to go to SP3 yet, your OWA version appears not to be at rollup 2 level. I only mention this because if it is a problem specific to version 14.2.247.5 (which
    could easily be the case, because MS change the OWA scripts with surprising frequency) , it's going to be hard finding people who can reproduce the problem.
    But to answer the question in the last sentence, searching the GAL and searching Contacts is, in a technical sense, very different. The GAL search is done with an LDAP query against Active Directory, whereas Contacts are usually going to be mailbox items,
    plus a few AD contact items.
    OWA For SmartPhone

  • How to update discoverer plus

    Hello everyone,
    i've been using for a lot of time discoverer desktop to develop reports and now i'm migrating to discoverer plus because of a better set of functionalities (but maybe a worse usability :-)). i've in my system an application server with installed discoverer plus but i would like to update it to the last version available without re-installing the whole application server.
    I'm trying to find out a procedure to do that but no success till now.
    Is it possible to do something like that?
    And if yes where can i find detailed information about a single component installation?
    Thank you all.
    Have a nice day

    Hi,
    With the latest version of Discoverer there are different ways of installing Oracle BI. You may be able (if you want to) use your existing AS configuration but it depends on what version you have, whether you are installing with eBS, whether you need an AS infrastruction etc. The documentation (http://download.oracle.com/docs/html/B13918_03/assoc.htm#sthref115) is a good starting.
    You don't say much about your existing setup so it is difficult to be more precise.
    Rod West

  • Discoverer Plus 10.1.2.55.26 Error loading 2nd, 3rd, workbooks

    When loading Discoverer Plus, the 1st workbook always runs but sometimes the 2nd workbook and every one after that gets errors and will not load. I am administrator for a large group of Discoverer users on our database across the USA and a lot of users are experiencing these errors.
    What happens is that the errors always happen in a certain sequence. The first error is always starting with "Unexpected...", the second error always starts with "Missing eventSupportConnect ...", and the third one is "An internal server error has occurred. ...." or sometimes "Contact with the Discoverer Server has been lost. ...", or other users have seen "OutOfMemory error occurred." Or sometimes "model.xml.PropertyDriver: ...".
    Here is the text of the first error we see:
    Unexpected java.lang.RuntimeException: Unexpected java.lang.IllegalStateException: missing eventSupportConnect on: oracle.disco.model.corbaserver.WorksheetinfoImpl@ ........
    Here is the text of the second error we see:
    missing eventSupportConnect on: oracle.disco.model.corbaserver.WorksheetInfoImpl@ ........
    When we log out and back on again, sometimes the errors do not occur for that session and sometimes they still do.
    This only happens with Discoverer Plus which uses Java, never Discoverer Viewer or Discoverer Desktop.
    We previously had Java 6 Update 22 and experienced the errors. When our comptuers were upgraded to Java 6 Update 24, the errors seemed to get better (went away completely for me) for over a week and I thought that had stopped the problem. But last week some of my users saw errors and today I saw the errors. I checked and my computer is still at Java 6 Update 24.
    If anybody had experienced this before and solved it, please let me know.
    Thank you for your time,
    Mike J.

    Michael,
    Our server guy confirms that Version 6 Update 24 is what we have on the servers. He has been trying to solve this issue for two months with no real success. I just logged into Discoverer and did not see the errors. It's not every time a user logs in, but it's often enough to be quite a bit of trouble.
    Another issue that I see before me (literally on my screen) is when the dialogue box is up to open an existing workbook and the little blue text boxes, sometimes called "hints", pops up with the name of the workbook and it's owner, if the mouse pointer is not moved right away then that little blue box stays on the screen in that spot and does not move or erase. It will stay there until you exit Discoverer and exit from all Internet Explorer windows. When I minimize all windows, the blue text box is still in that spot on the screen now on my windows background.
    This blue box error has bugged some of my users but at least a user can move the screen around it. The other error is more serious because it keeps a user from getting their reports.
    Thanks for your help,
    Mike

  • Export to EXCEL 4m Discoverer Plus/Viewer doesnt retain Header Formatting ?

    Hi,
    I am trying to export reports from Discoverer Plus and Viewer to XCEL
    but the Header's Formatting like Bold and Background Color etc are
    not being exported as seen in Plus.
    Could you please advice on how to make this happen.
    Thanks,
    VJ

    i tried this option..but the problem is as follows
    Excel Export:+ The header comes like this
    Report Name Company Name Date : 22-APR-10 Page: 1                               
    Column1     Column2     Column3     Column4                     Column5                                     Column6                                                     Column7          
    122124     9752          7 METRO NORTH     716 MIDWEST REGION     DODGE CITY/ANDERSON TOYOT      LEXUS OF ROCKFORD
    122124     9752          7 METRO NORTH     716 MIDWEST REGION     DODGE CITY/ANDERSON TOYOT      LEXUS OF ROCKFORD
    122124     9752          7 METRO NORTH     716 MIDWEST REGION     DODGE CITY/ANDERSON TOYOT      LEXUS OF ROCKFORD
    HTML Export:+ The header comes like this
    Report Name                                 Company Name
    Date : 22-APR-10                            Page: 1      
    Column1     Column2     Column3     Column4                     Column5                                     Column6                                                     Column7          
    122124     9752          7 METRO NORTH     716 MIDWEST REGION     DODGE CITY/ANDERSON TOYOT      LEXUS OF ROCKFORD
    122124     9752          7 METRO NORTH     716 MIDWEST REGION     DODGE CITY/ANDERSON TOYOT      LEXUS OF ROCKFORD
    i.e the export to HTML is retaining the format but it is putting the heading into multiple cells..there by making it look bad when opened in Excel.
    Wheras in EXCEL export it doesnot retain formatting like Bold,etc it merges all the cells of teh first row and is putting it there which is much better to view.
    Is there anything we can do about it ??
    Thanks

  • How to open a defult workbook from Discoverer Plus

    Hi all,
    Is it possible in Discoverer Plus for a user to open a pre defined worksheet in a workbook when he logs in without having to select the workbook and then select the worksheet?
    Please advise how to achive this.
    Any help will be greatly appreciated.
    Thank you all.
    Yjk

    Hi Yjk
    This is possible but you will have to alter the URL call to do it and add the workbook name to the end of the URL.
    You can use either the names of workbooks and worksheet or unique IDs of workbooks and worksheets. Using unique IDs is easier and helps avoid encoding problems with long names. Unique IDs are language independent. The following are the URL parameters to use while working with workbooks and worksheets.
    Discoverer Plus Relational:
    Workbooks:
    opendbid=<workbook ID>
    opendbname=<workbook name>
    Worksheets:
    sheetid=<worksheet ID>
    sheet=<worksheet name>
    Discoverer Viewer:
    Workbook:
    wbk=<workbook ID>
    wb=<workbook name>
    Worksheet:
    wsk=<worksheet ID>
    ws=<worksheet name>
    Discoverer OLAP:
    Workbooks:
    workbookname=<workbookname>
    Worksheets:
    sheet=<worksheet name>
    Note: Discoverer Plus OLAP uses only workbook and worksheet names.
    Examples below:
    How to Find the Unique IDs of Workbooks and Worksheets
    To find the unique ID of a workbook, use thie workflow:
    1. Launch the Open Workbook from Database wizard
    2. Right-click the workbook name
    3. Select Properties.
    The value of the Identifier field indicates the unique ID of the workbook.
    Alternatively, when the workbook is open, select File | Workbook Properties.
    To find the unique ID of a worksheet, use this workflow:
    1. With the worksheet open, select Edit | Worksheet Properties
    2. The Worksheet Properties dialog box opens.
    3. Click the General tab.
    The value of the Identifier field indicates the unique ID of the worksheet.
    The following URL starts Discoverer Viewer and opens a worksheet with the unique ID "156", which is present in the workbook whose unique ID is "MONTHLY_SALES". The connection ID used is "cf_a101".
    http://<machine.domain>:<port>/discoverer/viewer?cn=cf_a101&wbk=MONTHLY_SALES&wsk=156
    If the connection that is used here is a private connection, the user will be prompted for the password.
    In Plus, the same command is:
    http://<machine.domain>:<port>/discoverer/plus?cn=cf_a101&opendbname=MONTHLY_SALES&sheet=156
    Does this help?
    Regards
    Michael

  • Discoverer Plus for OLAP

    Hi....
    Our company had installed Oracle Application Server 10g and using Discoverer Plus 10g (10.1.2.48.18) and also creating the EUL as the data storage/mapping for our workbooks/reports.
    Our company has a plan to use Discoverer Plus for OLAP and already installed the discoverer catalog.
    How to create a connection using option "Connect To" OracleBI Discoverer for OLAP ?
    What is the diffrence between Discoverer Catalog and Analytic Workspace?
    What tools that we must use to create data for OLAP (to create some dimensions, measures etc)?
    Any Help will be appreciated
    Thanks,
    Handoko

    Hi Handoko,
    You can establish a connection from Discoverer Plus for OLAP, by specifying the database connect information in the form of HOST:PORT:SID (e.g MyServer.com:1521:orcl10g).
    The Discoverer OLAP catalog is used to store end-user reports and is installed and maintained using Application Server Control console. It allows you to install the catalog and authorize users to store reports in the catalog. The Analytic Workspace Manager is used to define your multi-dimensional model and load the data from source tables.
    Mark Rittman provides some indepth documentation, have a look at the link below :
    http://www.rittman.net/2004/11/29/understanding-the-role-of-the-olap-catalog/
    & Oracle’s info:
    http://www.oracle.com/technology/pub/articles/rittman_olap.html
    http://www.oracle.com/technology/products/bi/olap/viewlet/awm10g_viewlet_swf.html
    Hope this helps.
    Lance

  • Discoverer Plus associate with the Oracle Application Server Infrastructure

    Hi Everyone,
    I just install the Oracle BI (v 10.1.2.0.2) into my 2003 server so I could use the Discoverer Plus and Viewer. This is a stand alone BI installation (I guess, I have little knowledge about Discoverer plus or Oracle AS).
    My question is how could I connect the Discoverer plus to my ODS database, so I could create report or view report.
    and where to find the Oracle Application Server Infrastructure (or How do I know I have the Oracle Application Server Infrastructure?)
    I read the Oracle BI Discoverer Configuration Guide, and it tell me to associate the Oracle BI with the Oracle Application Server Infrastructure to deploy the Discoverer. so I went to the BI Application Server Control page, the Infrastructure section, the Identity Management to configure the Internet Directory, so I could I have the public connection, but it didn't work.
    Also do I real need the Oracle AS Infrastructure to make the Discoverer Plus work?
    Thanks in advance
    Kevin C
    Kevin
    Edited by: cmingl on Feb 11, 2010 1:30 PM

    Hi Kevin,
    Oracle AS Infrastructure is needed only if you are implementing SSO for Discoverer or using Public connection .
    Else only Oracle AS Middle tier is sufficient to work with Discoverer Plus .
    Regarding "how could I connect the Discoverer plus to my ODS database, so I could create report or view report"
    You need to create the End User Layer (EUL) and then grant privilege to the EUL to users who will be creating the report .
    Thanks,
    Sutirtha

Maybe you are looking for

  • IMovie Text and Presets Not Working?

    iMovie 11 isn't working properly. The text(Titles) shows up fine on preview but once you're out of the editing thing it shows the text plus random black backgrounds on it. Also, with some of the presets (the animated clips in iMovie) won't work prope

  • Windows reports one size for jpg, Photoshop says it's something else

    This has baffled me for years and I've always meant to pop the question to experts. So here goes. (WinXPPSP3, CS5) If I pick a jpg (taken with my camera, say) at random on my hard drive, and go View > Details, the SIZE column will say (for example) 3

  • C7280 - Cannot scan. Error message says another program has control over the device

    I opened the HP Device Manager to do a scan. I accepted the settings and the scan started. But part way through the scan, I stopped the scan as I realized that I wanted to change the resolution. I quit the Device Manager  and restarted it but when I

  • I have an iPhone 3Gs

    Question; I have an iPhone 3GS which has develop a problem with the Home Buttion which has stopped working, is there an app button that I could place on the screen that would open and close the phone. Kind regards Joseph

  • Plz help prob with a query and.. a trigger

    hi.. 1)i've created a view.gave the commit.. now when i execute this query i get no rows selected... sql>select text from user_views where view_name='d1_v';even when i give sql>select * from user_views; all i see are column names and nothing else.. d