Using 'OR' between column using 'NEAR' and 'ACCUM'

I am newbie to the Oracle Full text searching. After going thru documentation and forum posting in here now I am able to create so Oracle Full Text index on table and was able to write some queries as well. While implementing the findings in my research I had to question about the different of the queries listed below.
Please some one could look at this post and let me know if this correct or not.
CREATE TABLE tbl_application (
app_id VARCHAR(80),
app_title VARCHAR(80),
app_desc VARCHAR(120),
last_update_user VARCHAR(10)
begin
     CTX_DDL.CREATE_PREFERENCE ('tbl_datastore', 'MULTI_COLUMN_DATASTORE');
     CTX_DDL.SET_ATTRIBUTE ('tbl_datastore', 'COLUMNS', 'app_id, app_title, app_desc');
     ctx_ddl.create_section_group ('tbl_section_group' , 'basic_section_group' );
     ctx_ddl.add_field_section ('tbl_section_group' , 'app_id', 'app_id');
     ctx_ddl.add_field_section ('tbl_section_group' , 'app_title', 'app_title');
     ctx_ddl.add_field_section ('tbl_section_group' , 'app_desc', 'app_desc');     
end;
create index tbl_index on tbl_application (last_update_user) indextype is ctxsys.context parameters ('datastore tbl_datastore section group tbl_section_group SYNC (ON COMMIT)' );
so after creating the above mentioned table and the index, I have the following two version of the queries. When I compared the performance between these two queries is more or less same thing. Do you see any other issues using one over other version of these queries.
SELECT app_id, app_title, app_desc,
SCORE (1) AS weighted_score
FROM tbl_application
WHERE
CONTAINS (last_update_user, '
(((knowledge NEAR contains) WITHIN app_id) OR ((knowledge ACCUM contains) WITHIN app_id)) * 10 OR
(((knowledge NEAR contains) WITHIN app_title) OR ((knowledge ACCUM contains) WITHIN app_title)) * 5 OR
(((KNOWLEDGE NEAR contains) WITHIN app_desc) OR ((knowledge ACCUM contains) WITHIN app_desc))', 1) > 0
ORDER BY SCORE (1) DESC;
SELECT app_id, app_title, app_desc,
SCORE (1) AS weighted_score
FROM tbl_application
WHERE
CONTAINS (last_update_user, '
(((knowledge NEAR contains) OR (knowledge ACCUM contains)) WITHIN app_id) * 10 OR
(((knowledge NEAR contains) OR (knowledge ACCUM contains)) WITHIN app_title) * 5 OR
(((KNOWLEDGE NEAR contains) OR (knowledge ACCUM contains)) WITHIN app_desc)', 1) > 0
ORDER BY SCORE (1) DESC;
Thanks
Rakesh

Use OR function in DAX :
=CALCULATE(COUNTROWS(Employees),FILTER(Employees,OR(ISBLANK(Employees[Last Date]),Employees[Last Date]>DATEVALUE("2014-01-01"))))
which is equal to
=CALCULATE(COUNTROWS(Employees),FILTER(Employees,ISBLANK(Employees[Last Date])||Employees[Last Date]>DATEVALUE("2014-01-01")))

Similar Messages

  • Error while adding a used relationship between the New DC and the Web DC

    Hi Gurus
    We are getting the Error in NWDS while Adding  a used relationship between the New DC and the Web DC.
    Steps what we are Done
    1. Create the custom project from inactiveDC's
    2.creating the project for the component crm/b2b in SHRAPP_1
    3.After that we changed the application.xml and given the contect path.
    4.Then we tried to add Dependency to the custom create DC we are getting the error saying that illegal deppendency : the compartment sap.com_CUSTCRMPRJ_1 of DC sap.com/home/b2b_xyz(sap.com.CUSTCRMPRJ_1) must explicitly use compartment sap.com_SAP-SHRWEB_1 of DC sap.com/crm/isa/ like that it was throwing the error.
    so, we skip this step and tried to create the build then it is saying that build is failed..
    Please help us in this regard.
    Awaiting for ur quick response...
    Regards
    Satish

    Hi
    Please Ignore my above message.
    Thanks for ur Response.
    After ur valuble inputs we have added the required dependencies and sucessfully created the projects, then building of the  projects was also sucessfully done and  EAR file was created.
    We need to deploy this EAR file in CRM Application Server by using the interface NWDI.
    For Deploying the EAR into NWDI, we need to check-in the activites what i have created for EAR. once i check-in the activites ,the NWDI will deploy the EAR into CRM Application Server.
    In the Activity Log we are able to check the Activities as Suceeded but the Deployment column is not showing any status.
    When i  right click on my activity Id the deployment summery is also disabled.
    So finally my Question is that where can i get the deployment log file, and where can i check the deployment status for my application..
    Any pointers in this regard would be of great help..
    Awaiting for ur valuble Responses..
    Regards
    Satish

  • I am unable to use airdrop between my 6 plus and MacBook Pro (13-inch, Late 2011) running yosemite.any solutions? thank you

    i am unable to use airdrop between my 6 plus and MacBook Pro (13-inch, Late 2011) running yosemite.any solutions? thank you

    There aren’t any. AirDrop between the platforms requires that the Mac support Bluetooth 4.0, which wasn’t introduced to them until the 2012 models.
    (118296)

  • Can't use AirDrop between my iOS devices and my MacBook Pro

    Help! I can't get Airdrop to work between my MacBook Pro and my iOS devices. I believe all settings are configured correctly but something's off somewhere.
    MBP - late December 2011, now running 10.10. Wifi and bluetooth are enabled. Security privacy settings allow Finder inbound connections.
    iPhone 5S and iPad Air - both at 8.1. Wifi and bluetooth enabled, AirDrop settings on both are 'contacts only.'
    I'm logged in to all three devices with my common iCloud account.
    I go to share a photo from my iPhone and only my iPad appears as a potential recipient. Same from sharing from my iPad - only my iPhone appears. On my Mac's Finder AirDrop, nothing appears within, even when both my iOS devices are on.
    I've been looking forward to the idea of Mac-to-iOS sharing, and something somewhere is keeping this from happening.
    What should I check for next?

    For AirDrop between IOS & OS X, you'll need a MBP from 2012 or later.
    Your 2011 Mac can only do AirDrop between Macs that support AirDrop.
    In order to transfer files between a Mac and and an iPhone, iPad or iPod touch, your iOS device needs iOS 7 or later installed and your Mac needs to be a 2012 or later model.

  • HT5887 Can I use Airdrop between my iPad Mini and my Mac desktop? If so how?

    I am trying to use Airdrop to share files between my iPad and my Mac desktop. I can back up my iPad to the pc over the wireless network but I cannot get Airdrop to work.
    Any suggestions appreciated.

    No, you can only AirDrop between iDevice only (tap to enlarge image)

  • Is it possible to use dataguard between 64 bit oracle and 32 bit oracle

    primary db 64 bit oracle (10g r2)
    standby db 32 bit oracle (10g r2)
    is it possible to crate such a data protection solution with data guard that works
    thanks for your reply

    Hi,
    Here is a related thread, with comments by the author of the Oracle Data Guard book:
    http://dba.ipbhost.com/index.php?showtopic=1064
    The main requirement is Oracle software and O/S should be exactly same on primary and standby hosts.
    So you will need to install Linux 32 bit and same oracle software on both machines. I am not aware of any other modification that you will need.
    The chipset can be different as long as the O/S is same on both the hosts as I/O calls are created by O/S and are not dependent on chipset.
    Hope this help . . .
    Don Burleson
    http://www.dba-oracle.com

  • I am unable to use airdrop between my 6 plus and matchbook pro running yosemite.any solutions? thank you

    thank you

    There aren’t any. AirDrop between the platforms requires that the Mac support Bluetooth 4.0, which wasn’t introduced to them until the 2012 models.
    (118296)

  • When I try to use air play between my apple TV and my i-pad 2. All I get is sound and no picture

    When I try to use Airplay between my Apple TV and my I-Pad 2 all I get is sound and no picture.

    What app?

  • In Reports what  is the difference between the AT NEW and ON CHANGE Event

    Hi,
            Could you tell the differences of AT NEW and ON CHANGE events in Repors

    Hi raghava,
    The Major Difference is :
    a) When AT NEW occurs,
    the alpha-numeric fields have ******* in their value,
    b) where as in case of ON CHANGE,
    the alpha-numeric fields have their corresponding value,
    of that particular record,
    where the Event gets fired.
    Other differences are :
    ON CHANGE OF can be used any where in the program..
    on change of differs from at new in the following respects:
    1.It can be used in any loop construct, not just loop at. For example, it can be used within select and endselect, do and enddo, or while and endwhile, as well as inside get events.
    2.A single on change of can be triggered by a change within one or more fields named after of and separated by or. These fields can be elementary fields or field strings. If you are within a loop, these fields do not have to belong to the loop.
    3.When used within a loop, a change in a field to the left of the control level does not trigger a control break.
    4.When used within a loop, fields to the right still contain their original values; they are not changed to contain zeros or asterisks.
    5.You can use else between on change of and endon.
    6.You can use it with loop at it where . . ..
    7.You can use sum with on change of. It sums all numeric fields except the one(s) named after of.
    8.Any values changed within on change of remain changed after endon. The contents of the header line are not restored as they are for at and endat.
    while
    AT NEW can be used only within a loop of an INTERNAL TABLE..
    5. Sample program to get the taste of it
    (just copy paste)
    6.
    REPORT ABC.
    DATA : BEGIN OF ITAB OCCURS 0,
    bukrs like t001-bukrs,
    f1(10) type c,
    end of itab.
    itab-bukrs = '1000'.
    itab-f1 = '1111111'.
    append itab.
    itab-bukrs = '1100'.
    itab-f1 = '3333333'.
    append itab.
    itab-bukrs = '1200'.
    itab-f1 = '555555'.
    append itab.
    AT NEW
    loop at itab.
    at new bukrs.
    write :/ itab-bukrs , itab-f1.
    endat.
    endloop.
    AT ONCHANGE
    loop at itab.
    ON CHANGE OF ITAB-BUKRS.
    write :/ itab-bukrs , itab-f1.
    ENDON.
    endloop.

  • Difference  between XI 3.0 and PI 7.0

    Hi,
    What is difference  between XI 3.0 and PI 7.0
    Is this way we check version:
    System-- Staus -- Component Information --
    PI_BASIS -- 2005_1_700
    So the above system is PI 7.0 -- right?
    Regards

    Hi Rick,
    PI 7.0 works on WEBDYNPRO....They are basically the same technically but when SAP launched Netweaver 2004s , to bring all objects of Netweaver 2004s in Synch with the WAS version, XI was renamed to Process Integration (PI 7.0) .
    A comparison of the service packs in 2004 and 2004s;
    in 2004 - in 2004s
    SP12 & < - SP04
    SP13 + 14 - SP05
    SP15 - SP06
    SP16 - SP07
    SP17 - SP08
    SP18 - SP09
    XI3.0 is based on WAS(web application server)6.40 - NW2004
    PI7.0 is based on WAS(web application server)7.0 - NW2004's
    http://help.sap.com/saphelp_nw2004s/helpdata/en/d6/369142f195675ee10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/fb4cd3207c7063e10000000a1553f6/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f36ce30f-0e01-0010-a89b-c158d07c44ff
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ec19c05d-0501-0010-09a2-b6db51b5318d
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5441afe5-0601-0010-dba5-dc5f9d5caa9d
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c50cddbb-0601-0010-92a7-f2a40ca68e6d
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f027dde5-e16e-2910-97a4-f231046429f2
    Refer these threads as well:
    PI 7.0 and XI 3.0
    http adaptor on which factors we will use
    Diff between XI and PI
    Diff between XI and PI
    http adaptor on which factors we will use
    differences between xi 3.0 and pi 7.0
    Difference/ changes from XI 3.0 to PI 7.0
    give me main advantages of XI-7.0 TO XI-3.0
    XI 7.0 vs Xi 3.0
    XI/PI
    XI vs. PI
    XI 3.0 vs. PI (XI 7.0)
    Difference/ changes from XI 3.0 to PI 7.0
    moving from XI 3.0 to PI 7
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/xi%2band%2bpi%2bglossary
    Regards,
    Vinod.

  • Diffence between XI 3.0 and PI7.0

    Hi
    I am having one dought. what are defferences between XI 3.0 and PI 7.0 at Mapping and in IR and ID.

    Hi,
    1.All new features for XI 7.0 are almost same as for XI 3.0 at least till SPS 19.
    Some differences are as follows:
    • Adapter Enhancements like JMS, JDBC, Oracle-JDBC and CIDX Enhancements
    • New Conversion Agent,
    • Receiver Determination Enhancements
    • Multi mapping
    • User defined enhancements
    • Unbounded Processes (Integration Processes).
    2. One more difference is the ABAP stack (which is 7.0 and not 6.40) but from the developer point of view there is nothing new.
    3. PI 7.0 = XI 7.0
    4. For each SP in XI3.0 there is a corresponding SP being released for PI (XI 7.0). A comparison of the service packs in 2004 and 2004s:
    In 2004 - In 2004s
    SP12 & lower = SP04
    SP13 + 14 = SP05
    SP15 = SP06
    SP16 = SP07
    SP17 = SP08
    SP18 = SP09
    5. XI3.0 is based on WAS(web application server)6.40 - NW2004
    PI7.0 is based on WAS(web application server)7.0 - NW2004's
    There is not much difference between XI 3.0 with latest Service Pack i.e. 20 or 21 and PI 7.0
    The main difference between 3.0 and 7.0 is the GUI in SLD. But, it is pretty easy to adopt. All other components, e.g. IR, ID, RWB, should virtually be identical.
    7.0 also contain some SCM contents not available from 3.0. For most of us, this is a non-issue.
    In 7.0 we can schedule a background job and edit the payload.
    XI3.0 is based on WAS(web application server)6.40 - NW2004
    PI7.0 is based on WAS(web application server)7.0 - NW2004's
    Currently SP 21 for XI 3.0 and SP12 for PI 7.0 is the latest one.
    ref:http://help.sap.com/saphelp_nw04/helpdata/en/cf/9844428e9cbe30e10000000a155106/frameset.htm
    See This Thread on the Same Discussion
    Diff between XI and PI
    http adaptor on which factors we will use
    differences between xi 3.0 and pi 7.0
    Difference/ changes from XI 3.0 to PI 7.0
    give me main advantages of XI-7.0 TO XI-3.0
    XI 7.0 vs Xi 3.0
    XI/PI
    XI vs. PI
    XI 3.0 vs. PI (XI 7.0)
    Difference/ changes from XI 3.0 to PI 7.0
    moving from XI 3.0 to PI 7
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/xi%2band%2bpi%2bglossary
    Reward points if helpful.
    Thanks,

  • Encrypting communication between an app that uses an ODBC/DSN (with ADODB) and SQL Server 2008 R2

    I've been doing a lot of reading the last couple of days on how we can encrypt db communication between our product app and a customer's SQL Server db, but cannot make it work as expected. The app uses a ODBC/DSN to connect to the SQL Server db. I use this
    ODBC app to setup the DSN (on a Windows 7 PC):
    C:\Windows\SysWOW64\odbcad32.exe
    The  DSNconnection uses the SQL Server driver 6.01.7601.17514 and has these properties:
    - WinNT authentication.
    - Client Config button: TCP/IP to <server-name>\<instance.-name>
    - Change to default db: <name-of-app-db>
    - Everything else is default setting.
    SQL Server is on the same Windowns 7 PC and has a self-signed cert installed (used IIS to generate it) and has the Force Enryption set to "yes".
    I have a test C# program that uses the ADODB 2.7.0.0 COM-wrapper, made by Visual Studio after adding a reference to the ADO 2.7 library version 6.1.7601.17857. The program creates an ADODB.Connection object that has a simple connection string: "DSN=<san-name>;UID=<user>;PWD=<password>". The
    program then creates an ADODB.Recordset object and reads and displays a field from a table.
    Works fine.
    If I go into SQL Server and set Force Encryption to "no," clear the cert, restart the SQL service, and then re-run the program, it works fine.
    Here's the kick. If I go into the DSN and select "Use strong encryption for data" the Test button on the DSN works—why does it work? The SQL Server is no longer encrypting the connection so an error should occur. If I run the test program, it works
    as well—why? I can look at the connection properties in the test program and see that ADODB has added the ";Encrypt-yes" stuff to the end of the connection string. Yet that option seems to have no effect.
    If I set the SQL instance back to Force Encryption:yes, enable the cert, restart the SQL service, and clear the DSN's "Use strong encryption for data" option, I can still connect to the db with the
    test program—why?
    What am I doing wrong? I need to be able to ensure that the communication between our app product and the SQL instance is encrypted, and that we get an error if the SQL instance does not support encrypted communications. We really don't want the customer
    to have to enable Force Encryption because they have other db's on their SQL Server that do not use encrypted communication, but they want to know that our product's communication channel with the db is encrypted.
    No, I can't change the app product's code at this point in time. I'm stuck with working with what a DSN called from ADODB has to offer.
    Also, how can I be sure that communications are encrypted? I mean, I've tried things like "SELECT * FROM sys.dm_exec_connections" but that doesn't help because I have no idea how to tie the list of sessions shown back to my test program, although
    I guess it's a good thing that some of the sessions listed show encrypt_option as TRUE.
    -glenn-

    Ah yes, very good point. It's easy to miss because you have to delete then recreate the DSN in order to change drivers. So I switched the DSN over to the SQL Native 11 driver.
    Now when I try to connect to the SQL instance as <computer-name>\<instance-name>, and without a cert on the server, I get "the target principal name is incorrect". Perfect; now we're getting somewhere!
    Change my DSN to use <fqdn>\<instance-name> and it works. This tells me that SQL Server has auto-generated a cert and named it <fqdn>. I would have expected the "cert fail" error, not a cert
    name mismatch, because I'm not using Trust Server Cert.
    So I load up my self-signed cert, and that works too.
    I am still confused as to why I'm not seeing the "cert fail" error when I have no cert loaded on the SQL Server. I am not using Force Encryption on the server at all, so wouldn't expect SQL Server to auto-create a cert when an Encrypt=yes request comes in,
    but apparently it does?
    I also ran into a problem with this:
    select c.session_id, c.encrypt_option, s.client_interface_name
    from sys.dm_exec_connections c
    join sys.sysprocesses s
      on c.session_id = s.session_id
    where s.dbid = db_id('MyDatabase')
    There is no s.client_interface_name, probably should be s.hostname. There's also no s.session_id. I thought maybe this should be s.sid, but then no rows ever come back. The c.session_id looks like 51 and 52, but the s.sid looks like a very long binary number,
    so these two fields cannot be joined. I don't know how to convert the sid's properly so that the join would work. Ah wait, I just found the s.spid column; the join works when that column is used (I assume that's correct anyhow).
    If I add a Thread.Sleep(30 seconds) to my C# program just before the connection is closed, this query shows me the session for the correct hostname has encrypt_option=TRUE.
    And I have to keep my fingers crossed that all the app I/O will still work properly after
    changing the driver. Probably a safe bet though.
    Think I'm ready to throw in the towel on getting the "cert fail/no SSL" error to appear.
    It does look like I am able to sufficiently show that the connection is encrypted when Encrypt=yes is used with the newer driver.
    Thank for all the help!
    -glenn-

  • "Message is used to carry data between the BlackBerry handheld and an associated server"

     Hi everyone,
    I'm a first time poster!
    I've been receiving about a 100 of these emails everyday for over a week now!  
    Bell mobility and Bell ISP both say it's not their issue or problem to fix and told me to contact the other!  
    The e-mails are orginating from:
    [email protected]
    Any suggestions?
    Please help!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    This message is used to carry data between the BlackBerry handheld and an
    associated server. Please do not delete, move or respond to this message - it
    will be processed by the server.
    BEGINETP 116
    AdxV+90AAAAAIBAIMzAzQUM3MUQgGWZyaXp6ZWxsQHBlaS5zeW1wYXRpY28uY2EAI/HrYFAF
    Q01JTUUDQICAgIAyAAAwOENGOEQ3NkIrRysxALbQEVSv1zvyA8fJF15bAW0AGb/C87pyXKXe
    k+KxQN/Inek!
    ENDETP 70196029
    Message Edited by Frazzledazzle on 09-17-2009 11:44 AM

    HI and Welcome to the forums!
    Here are several KB's that discuss the issue...hopefully one of them has what you need:
    KB04254 Network@etp email messages arrive on the BlackBerry smartphone
    KB10289 What is a Network@etp message
    KB13551 Receiving both email messages and network@etp email messages on the BlackBerry Smartphone
    KB12643 ETP messages are not deleted from the Inbox after delivery to the BlackBerry smartphone
    Good luck and let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Can JMSPriority be used to distinguish between real-time, near real-time workloads?

    IHAC that needs to throttle work passed to a backend system, i.e. limit
              the # of concurrent requests, as well as prioritize between different
              kinds of workloads including real-time, deferred real-time
              (asynchronous) and batch.
              I'm proposing to use a pool of MDBs reading of a single JMS queue. The
              max-free-beans-in-pool would be used to limit the concurrent access to
              the backend system.
              Can JMSPriority be used to distinguish between the different kinds of
              workloads? (real-time, near real-time and batch)
              How is the JMSPriority used when consuming messages from a queue in WLS
              JMS? Are messages dequeued in strict priority order or is there an
              algorithm to ensure lower priority messages are periodically consumed,
              i.e. to ensure they are not starved-out? Or do you have to create a
              message selector to dequeue based on priority?
              Is the an appropriate use of JMSPriority or should I set-up dedicated
              JMS queues for each of the different workload types?
              Cheers
              Simon
              

              Tom,
              How do you create custome connection factories in JMS? And also how can u
              change the MessageMaximum to 0? I thought the minimum is 1 and that u can only
              change in the config.xml file??
              Any code snippets on how to write custom connection factories would be helpful.
              Thank You,
              Sankas
              Tom Barnes <[email protected]> wrote:
              >Hi Simon,
              >
              >Answers in-line.
              >
              >Simon Pearce wrote:
              >
              >> IHAC that needs to throttle work passed to a backend system, i.e. limit
              >> the # of concurrent requests, as well as prioritize between different
              >> kinds of workloads including real-time, deferred real-time
              >> (asynchronous) and batch.
              >>
              >> I'm proposing to use a pool of MDBs reading of a single JMS queue.
              >The
              >> max-free-beans-in-pool would be used to limit the concurrent access
              >to
              >> the backend system.
              >>
              >> Can JMSPriority be used to distinguish between the different kinds
              >of
              >> workloads? (real-time, near real-time and batch)
              >>
              >> How is the JMSPriority used when consuming messages from a queue in
              >WLS
              >> JMS? Are messages dequeued in strict priority order or is there an
              >> algorithm to ensure lower priority messages are periodically consumed,
              >> i.e. to ensure they are not starved-out?
              >
              >To get priority sorting you must configure the destination to sort by
              >priority.
              >It sorts FIFO by default.
              >
              >In addition, you may want to tune-down the pipe-line size between
              >the JMS server and the MDB (create a custom connection factory, and
              >set MessagesMaximum to 0, default is 10), as the pipe-line is unsorted
              >and consequently messages will not "jump ahead" of each-other in the
              >pipe-line.
              >
              >> Or do you have to create a
              >> message selector to dequeue based on priority?
              >
              >No.
              >
              >>
              >>
              >> Is the an appropriate use of JMSPriority or should I set-up dedicated
              >> JMS queues for each of the different workload types?
              >
              >The latter, as long the app can tolerate concurrent execution of all
              >workload
              >types due to having an MDB per queue. The latter will perform better
              >than selectors,
              >and you won't have to worry about the unsorted pipe-line.
              >
              >>
              >>
              >>
              >> Cheers
              >>
              >> Simon
              >
              >Tom, BEA
              >
              

  • Between-Filter on Column using calculated presentation-variable values

    Hello everyone,
    i'd like to know whether it is possible to filter a column with a Between-Statement using two calculations done on a single presentation variable in Oracle BI Answers
    What i have:
    - OBIEE 10g
    A line-chart, which shows earnings over a period of several years: In 1999 it might be 100.000€, in 2000 it might be 80.000€,..., in 2009 it might be 95.000€ and so on.
    What i want:
    Now i'd like to create a dashboard prompt to be able to choose a certain year, for example 2006.
    The chart then should show data for the year given (2006...) and two years before(2004, 2005) and two years after the chosen year(2007,2008).
    Example:
    If 2006 is chosen, then data from 2004 to 2008 should be shown in the chart
    If 2000 is chosen, then data from 1998 to 2002 should be shown in the chart.
    What i did:
    - I created the Prompt, set its presentation variable to var_year.
    - I then created a filter on my years-column, choosing "Between" from the DropDown-List.
    - I added two 'Variable-fields within the filter-dialogue', each filled with var_year and a default value.
    - I tried to add a +2 or -2 to the variable-expression field, but (ofcourse) got an error.
    Thanks in Advance and greetings from Germany,
    Chris
    Edited by: user12288481 on 04.08.2010 13:18

    Sorry for not answering to your Posts yesterday.
    I have to admit that i was unable to solve my problem, although the solutions posted, seemed to be quite promising.
    Hammett81's solution
    First, I gave Hammett81's solution a try and created a filter group using the 'Add filter' option/dialogue box.
    This Filtergroup consists of 5 single filter expressions, which have been connected by ORs:
    The way i created those filters:
    In the 'Create/ Edit Filter' i've chosen 'is equal/ is in' - Operator.
    Then i was given the chance to add a 'value' or to add 'Variable --> Presentation', which summons 2 textboxes (Variable Expression and Default)
    Everything i put into the variable expression field will be put into the @{} bracket by OBIEE, after clicking ok.
    So it is not possible to use +1, +2, -1,-2 etc. within this field, as this would lead to @{var_year +2} for example, which ofcourse does not match the presentation variable's name.
    On the other hand, if i do not use a Variable Expression but a "Value field", then i can write @{var_year} +2 for example.
    In my opinion, obiee wants to use the expression as a simple value though, rather than use it as a variable and therefore won't check the presentation variables value, when it tries to filter the data.
    John's solution
    Regarding Johns answer, i am not sure where to put the filter expression. Should this be added into the SQL-Query (Advanced-Tab) or do i have to add it within the columns formula? (fx)
    Edited by: Chris2010 on 05.08.2010 09:36

Maybe you are looking for