Query that only returns certain fields in Java

Currently I'm using a filter that identifies some keys, I then get all the keys and get a single value from each object. The rest of the object is quite large. I've seen references in passing on the ability to do this, using CohQL but I can't get it to work from Java.
Basically, I want to do: "Select field from "Cache" where key='asdf'". I just want to get back the specific "field" rather than the whole object. How do I do this?
Thanks.

Hi,
It should be easy if your object has a getField() accessor. Hope this helps ...
http://download.oracle.com/docs/cd/E15357_01/coh.360/e15723/api_cq.htm#CEGDIJEC
Using Path-Expressions
One of the main building blocks of CohQL are path-expressions. Path expressions are used to navigate through a graph of object instances. An identifier in a path expression is used to represent a property in the Java Bean sense. It is backed by a ReflectionExtractor that is created by prepending a get and capitalizing the first letter. Elements are separated by the "dot" (.) character, that represents object traversal. For example the following path expression is used to navigate an object structure:
a.b.c
It reflectively invokes these methods:
getA().getB().getC()
For example ...
Select the home state and age of employees in the cache ContactInfoCache, and group by state and age.
select homeAddress.state, age, count() from "ContactInfoCache" group by homeAddress.state, age

Similar Messages

  • Query that only returns items that will produce a result

    Thanks to Mack for his help yesterday.  I would really appreciate some help from anyone who is more SQL competent than I am.  I have an SQL problem that is just completely over my head.  I've created a nifty tagging system for the blog, that sorts by tags and by multiple tags, check out the beta here: http://committedsardine.com/blog.cfm
    When a user selects a tag, it adds it to the value list SESSION.blogTags.  If the selected tag is there already, it removes it.  When the list for tags pops up, I output all the tags, and show their state.  You'll see what I mean if you try it.
    What this leads to is the ability to select a group of tags for which there are no query results.  What I want to do is only show those that will generate results and how many results they'll show.  Like this, select "fluency" by itself there are 310 entries
    fluency (310) | digital (234) | writing (12)
    Once fluency is selected, there are 13 articles that ALSO are tagged by "digital", but none that are tagged by writing:
    fluency | digital (12) | writing
    I have a table called blogTagLinks, that is just for tying a tag to a blog.  It lists a blogID and a tagID.  Here is a sample of it for reference:
    blogTagLinkID
    blogID
    tagID
    4
    2
    2
    5
    2
    3
    6
    2
    5
    39
    1
    18
    49
    1
    1
    42
    1
    9
    44
    1
    19
    47
    5
    14
    48
    1
    22
    54
    16
    22
    I'm including all my sql, but the spot that I need help with is marked in red below:
    <!---if URL.tg is defined, check to see if it exists in the database, then the SESSION, and either add or delete it from SESSION--->
    <cfquery name="rsAllTags" datasource="">
    SELECT tagsID, tagName
            FROM tags
            WHERE tagActive = 'y'
    </cfquery>
    <cfset allTags = ValueList(rsAllTags.tagsID)>
    <cfif isDefined("URL.blogTags")>
        <cfif ListFind(allTags, URL.blogTags) NEQ 0>
            <cfif ListFind(SESSION.blogTags, URL.blogTags) NEQ 0>
                <cfset SESSION.blogTags = ListDeleteAt(SESSION.blogTags, ListFind(SESSION.blogTags, URL.blogTags))>
                <cfelse>
                <cfset SESSION.blogTags = ListAppend(SESSION.blogTags, URL.blogTags)>
            </cfif>
        </cfif>
    </cfif>
    <!---get a list of all available tags, tags that if added to the already selected tags, will return a result--->
    <cfquery name="rsAvailableTags" datasource="">
    SELECT tagsID, tagName
            FROM tags
            WHERE tagActive = 'y'
            NEED SOME STATEMENT HERE OF BLOGTAGLINKS TO DETERMINE WHAT TAGS WILL PRODUCE A RESULT
    </cfquery>
    <!---if searching by tags, get a list of the currently selected tags for display, the 0 returns an empty result if there are no tags--->
    <cfif isDefined("SESSION.sb") AND SESSION.sb EQ "tg">
        <cfquery name="rsTags" datasource="">
            SELECT tags.tagName, tagsID
            FROM tags
            WHERE tagsID <cfif SESSION.blogTags NEQ "">IN(#SESSION.blogTags#)
            <cfelse> = 0</cfif>
        </cfquery>
        <cfset variables.newrow = false>
    </cfif>
    <!---get the information for the blogs list, filtered by keyword or tag if requested--->
    <cfquery name="rsBlog" datasource="">
        SELECT blog.blogID,
            blog.storyID,
            blog.blogDate,
            blogStories.storyID,
            blogStories.blogTitle,
            SUBSTRING(blogStories.blogBody,1,200) AS blogBody,
            images.imageName
        FROM blog, blogStories, images
        WHERE blog.storyID = blogStories.storyID AND images.imageID = blog.photoID AND blog.blogDate < "#todayDate#" AND blog.deleted = 'n'
    <cfif SESSION.sb EQ "kw">AND  CONCAT(blogStories.blogBody, blogStories.blogTitle) LIKE '%#SESSION.blogKeywords#%'</cfif>
        <cfif SESSION.sb EQ "tg" AND SESSION.blogTags NEQ "">
                AND  blog.blogID IN (
                SELECT blogID
                FROM blogTagLink
                <cfif SESSION.blogTags NEQ "">
                    WHERE tagID IN(<cfqueryparam cfsqltype="cf_sql_integer" value="#SESSION.blogTags#" list="true">)
                    GROUP BY blogID
                    HAVING count(tagID) = #ListLen( SESSION.blogTags )#)
                </cfif>
         </cfif>
    ORDER BY blog.blogDate DESC
    </cfquery>

    There might be a single query solution but here's a query that you
    will need to run for each tag in the database (cfloop over all the
    tags) and will give you the number of blogs that have the selected
    tags + the current tag
    SELECT Count(*) AS blog_count
    FROM (
        SELECT blogID
        FROM blogTagLink
        WHERE tagID IN(<cfqueryparam cfsqltype="cf_sql_integer"
    value="#SESSION.blogTags#" list="true">)
             OR tagID = #currentTagID#
        GROUP BY blogID
        HAVING count(tagID) = #ListLen( SESSION.blogTags )#
             OR count(tagID) = #ListLen( SESSION.blogTags )# + 1
        ) AS blogs
    Mack

  • Need help writing a MySQL query that will return only records with matching counter-parts

    Since I don't know how to explain this easily, I'm using the
    table below as an example.
    I want to create a MySQL query that will return only records
    that have matching counter-parts where 'col1' = 'ABC'.
    Notice the 'ABC / GHI' record does not have a
    counter-matching 'GHI / ABC' record. This record should not be
    returned because there is no matching counter-part. With this
    table, the 'ABC / GHI' record should be the only one returned in
    the query.
    How can I create a query that will do this?
    id | col1 | col2
    1 | ABC | DEF
    2 | DEF | ABC
    3 | ABC | GHI
    4 | DEF | GHI
    5 | GHI | DEF
    *Please let me know if you have no idea what I'm trying to
    explain.

    AngryCloud wrote:
    > Since I don't know how to explain this easily, I'm using
    the table below as an
    > example.
    >
    > I want to create a MySQL query that will return only
    records that have
    > matching counter-parts where 'col1' = 'ABC'.
    >
    > Notice the 'ABC / GHI' record does not have a
    counter-matching 'GHI / ABC'
    > record. This record should not be returned because there
    is no matching
    > counter-part. With this table, the 'ABC / GHI' record
    should be the only one
    > returned in the query.
    >
    > How can I create a query that will do this?
    >
    >
    > id | col1 | col2
    > --------------------
    > 1 | ABC | DEF
    > 2 | DEF | ABC
    > 3 | ABC | GHI
    > 4 | DEF | GHI
    > 5 | GHI | DEF
    >
    >
    > *Please let me know if you have no idea what I'm trying
    to explain.
    >
    Please be more clear. You say that 'ABC / GHI' should not be
    returned,
    and then you say that 'ABC / GHI' should be the only one
    returned. Can't
    have both...

  • Only show certain fields after a date has passed

    How would I set a recordset to only show certain fields after
    a date has
    passed?
    For example:
    I have a list of classified adverts some which include an
    image which the
    client pays extra for. After a certain time period, say, 1
    year,
    would it be possible to use some kind of IF statement (or
    something) to no
    longer show the image?
    Thanks
    Gary

    scrap that entire post man.
    I'll rewrite it here in a few.
    "crash" <[email protected]> wrote in message
    news:[email protected]...
    >
    OK. I can't be as much help as I was hoping, since I
    just did this in
    > PHP and MySQL. But we can do a bit. My ASP is rusty
    enough I'm just going
    > to give you what I think you should do.
    >
    > You'll need to research how to format dates and most
    importantly strip
    > away the timestamp. In MySQL, you can format the date as
    it comes out of
    > the recordset. I'm not sure if you can do this in
    access, but I would
    > imagine that you can (indeed, it might be the same SQL).
    >
    > <%
    > varToday = Date (should be able to format out timesteamp
    here);
    > varTerm = 365; 'This will be your constant term, defined
    in days, it looks
    > like from archived posts
    >
    > varExpiredDate = varToday = varTerm;
    >
    > Search your recordset via varTerm. ie
    > WHERE datefield < <% varTerm %>
    >
    > You will need to search date formatting in Access to see
    how to strip out
    > the Timestamp from your date, but you should be able to
    do this from your
    > SQL statement, and return just the date, this will be
    compared to your
    > varTerm, which basically states that if your signup date
    is beyond a year
    > from today, your ad will need to be renewed.
    >
    > I"m not very happy with this, but it's all my brain is
    coming up with
    > right now. Gimme a few to review it and I might have
    something more for
    > you.
    >
    > HTH, sorry I couldn't give you code or urls for date
    formatting.
    >
    > Additionally, you will eventually need to build
    somethign that checks
    > images and and dates and then sends an email to your
    customer letting them
    > know their term has expired.
    >
    > OR - You could also add a new field to your database
    which automatically
    > updates an "expire" time in your ad table which
    automatically adds days to
    > the time. If you do this, you don't have to worry about
    stripping
    > timestamps or anyting, and you can just do a simple
    lookup for if Date >=
    > DateExpireField then don't pull image.
    >
    >
    >

  • Search Scope that Only Returns Sites

    I'd like to create a search scope that only returns Sites. I don't want any documents, lists, items, or anything else in my results. How would I do this?Murray

    You can use ContentClass:STS_Web
    You can either create a scope or you can simply append it to any query using the search query web part. This would allow the user to search for "project1" and the executed query would be "project1 ContentClass:STS_Web" and therefor only return sites with project1 in the content.
    MCTS: SharePoint 2007, Web Applications
    MCPD: Web Developer
    My Blog: http://corypeters.net

  • OTL I am trying to wright a SQL query that will return the date the timesheet was submitted and date/time it was approved, can anyone guide me on this?

    Hi
    I am trying to wright a SQL query that will return the date the timesheet was submitted and date/time it was approved, can anyone guide me on this?
    I basically need person name who submitted, date - time it was submitted for approval, then the person who approved it and the date - time that it was approved
    Thanks
    Ruby

    Ruby,
    you can start with HXC_TIMECARD_SUMMARY table for submitter detail. But for approver details, i think you need WF tables to get the data for item type HXCEMP.

  • Universe object that points to certain field according to the user PVL

    Hi universe designing experts !
    Marianne solved a problem I have in [this|Web Intelligence: Hide / Show object according to InfoView Locale; post. I wanted to replace an object/column in a report according to the users locale. This was done at report level with a selection containing the getPreferredViewingLanguage() function in WebI.
    My question now is, could I somehow define in the universe an object that, according to the PVL of the report viewer, points to a different field in the database ?
    We have description fields in the databse for different languages.
    Thanks in advance !
    P

    Hi Marianne
    Thanks again for your response.
    Marianne Loenen wrote:
    > If you want a solution for this written down, you need to give the database you use.
    We are using an Oracle 10g database.
    Marianne Loenen wrote:
    > In Oracle there is a system view v$nls_parameters in which you can lookup stuff like that.
    > It's a one row view, so you can use a (select xxx from v$nls_parameters) as column in any query.
    OK I didn't know that. But I don't think that I could use this variable in this situation. Please correct me if I'm wrong...
    What I want to do is this:
    A user with Preferred Viewing Language nl_NL and a user with PVL en_GB are requesting the same report. In that report there is a field with a description about another field. The descriptions are 2 different columns in the database. You showed me before (thanks again) how I could switch the 2 field according to a users PVL that I could query from the system ( getPreferredViewingLanguage() ). I want, if possible, to do this at Universe level so I only have to drag 1 single object in the query that corresponds to the right column according to the report viewers PVL... So the en_GB guy will see English descriptions and the Dutch guy will see the Dutch descriptions all from the same object...
    Would be cool if that was possible...
    Thanks again for helping !
    P

  • Form Query button only returns current user's entries.

    Hello.
    I've built a simple form that admins will use to insert some simple information into a table with. They'll insert the names of users, passwords, company info, email, logged in data and created time/by, updated time/by info. The inserting part works fine, but when they query the form, all they get are the records that they've entered. Any records that another user has entered do not show up. A report based on the same table shows all users in the table. The only thing I'm doing that may be of any problem is inserting created by and updated by as a hidden field and defaulting that value to wwctx_api.get_user. I don't see why that should be a problem. Is this a table permissions issue? I've provided manage access to all users of the form.
    Thanks.
    Kurt

    Ton,
    Shouldn't I be able to run that api as a default value for hidden fields, without it impacting the query? I've only attached that value to the created by and updated by columns and made the first insertable only and the second updateable, insertable. I guess I understand. I thought the default value would only be used for new entries, not for all queries. I guess I need to put in a request to our data modeler to add a trigger to the table (my hands are tied for table creation). Actually, I should be able insert some pl/sql code to the portlet to do this. Something to do with the ...after the processing the form option? After inserting the new record through the form, insert created by, created date or update updated by updated date. One thing I still don't get (having only worked with Portal a few days) is how do I make sure I'm associating this insert with the proper record? Thanks.
    Kurt

  • SQL: Select DISTINCT only on certain fields?

    This is an odd question. Partly because it's late and I'm not
    thinking
    straight, but...
    I have a query consisting of 9 joins. It works fine.
    However, I've encountered a bit of an issue with my data that
    would much
    easier to fix via a query than actually fixing the data (as
    the data fix
    would require committee approvals and the like...)
    In a nutshell, my query is trying to return a DISTINCT set of
    recrods.
    The catch is that my records are ALMOST distrinct, except for
    one field. Is
    there a way to use the distinct command in a way the excludes
    specific
    fields?
    -Darrel

    > No; DISTINCT applies to all columns returned by your
    SELECT statement.
    > You didn't provide a lot of information, but typically,
    if you need
    > DISTINCT, then you've done something wrong.
    It's a complex join. The data is this:
    Packet table (record of a packet of forms)
    which point to...
    Packet variations (each packet can have a variation)
    which point to...
    Forms table (record of a form)
    which points to...
    Form variations (individual forms)
    The catch is that multiple Packet Variations can point to the
    same Forms, so
    when I query the database to get all variations of a packet
    and related
    forms, I can end up with duplicate records of forms.
    This isn't a big deal, as DISTINCT can work for this. The
    catch is that we
    also let each Packet Variations' forms be sorted
    individually. It's this
    'sort' field that ends up causing the Distinct not to work,
    as the sort
    might be completely unique for each one.
    ALL THAT SAID, this is definitely more of a policy issue than
    a technology
    issue. However, getting them to change policy is sometimes
    more work than
    finding a technology workaround.
    I could just query the DB and return all the duplicates and
    then sort things
    out in the code, but I was hoping that maybe there was a
    clever way to
    handle this via SQL.
    > Giving you the benefit of the doubt, if you need some of
    your returned
    > columns to be unique in the result set, but not all of
    them, then you need
    > to use GROUP BY. You'll need to decide how you want SQL
    Server to
    > determine which value to use for columns that are not
    part of the unique
    > group.
    Ah, I'll look into that! Thanks, lionstone!
    -Darrel

  • Generating subtraction equations that only return positive values

    Hello!
    Can you please help me to create a random subtraction equation where the result will always be positive? For example, my current scripting will return something lilke 3-6=-3. I don't want equations like this- only postive answers.
    Thanks for your help!
    //random numbers
    //1.
    function randomNumbers(min:Number,max:Number) {
       var Results:Number=Math.floor(Math.random()*max)+min;
       return Results;
    //2.
    new_mc.addEventListener(MouseEvent.CLICK, showRandomnumber);
    //3.
    function showRandomnumber(event:MouseEvent):void{
       r1_txt.text = String(randomNumbers(1,10));
       r2_txt.text = String(randomNumbers(1,10));
       a1_txt.text = String(Number(r1_txt.text) - Number(r2_txt.text));

    I see.
    How about you try to pass the first generated value the second time you call the function? Like so:
    // Your function definition.
    function randomNumbers(min:Number,max:Number) {
       var Results:Number=Math.floor(Math.random()*max)+min;
       return Results;
    // Connecting the event handler.
    new_mc.addEventListener(MouseEvent.CLICK, showRandomnumber);
    // Check the r2 line.
    function showRandomnumber(event:MouseEvent):void{
       r1_txt.text = String(randomNumbers(1,10));
       r2_txt.text = String(randomNumbers(1,r1_txt.text as Number));
       a1_txt.text = String(Number(r1_txt.text) - Number(r2_txt.text));
    Ofcourse, this leaves you with the possibility that r2 is the same as r1, leaving 0 after subtraction. But it shouldn't give you any negative numbers.
    Michiel

  • Need a Query that Returns both Column Name with Column Data

    Hi,
    Hope someone can assist quite quickly. I'm after a query that will return me both column name together with column data, i.e
    Table: APP_INFO
    COL1  - currently has the value of 10
    COL2  - currently has the value of 'HELLO'
    COL3  - currently has the value of 'QWERTY'
    COL4  - currently has the value of 2000Query I'm after is to return the following result set: [actual column name, actual column data]
    COL1,10
    COL2,'HELLO',
    COL3,'QWERTY'
    COL4,2000
    Any help would be much appreciated.
    Thanks.
    Tony.

    Like this ?
    SQL> select empno, ename, deptno from emp where deptno = 10;
         EMPNO ENAME          DEPTNO
          7782 CLARK              10
          7839 KING               10
          7934 MILLER             10
    SQL> select decode(t.id,1,'EMPNO',2,'ENAME',3,'DEPTNO') COLNAME,
      2  decode(t.id,1,to_char(empno),2,ename,3,deptno)
      3  from (select emp.*, rownum rn from emp
      4  where deptno = 10) emp, (select rownum id from dict where rownum <=3) t
      5  order by emp.rn, t.id
      6  /
    COLNAM DECODE(T.ID,1,TO_CHAR(EMPNO),2,ENAME,3,D
    EMPNO  7782
    ENAME  CLARK
    DEPTNO 10
    EMPNO  7839
    ENAME  KING
    DEPTNO 10
    EMPNO  7934
    ENAME  MILLER
    DEPTNO 10
    9 rows selected.Rgds.

  • Problem with select query that includes a date

    I've been fighting with this for about 4 hours - yes, quite literally... I've never been good with date stuff. I have a brain block.
    Anyway, here's the situation:
    I have an Access database that has a time/date field. There are no times, just a date in mm/dd/yyyy format.
    That table is a list of classes held for the past three years. I want to make a query that only shows the classes that have ended after January 1 of this year. I don't want to put 01/01/2010 in the query itself because I want it to still work next year.
    This is the current query:
    <cfquery name="classes" datasource="#DSN#" dbtype="ODBC">
    SELECT classesTitles.ClassTitle, classesTitles.ClassDesc, classCatagories.catagoryName, classes.classStart, classes.classEnd, classes.classNotes, owners.fName, owners.lName, classTime.timeSlot, classes.classID, classes.classLimit
    FROM classCatagories INNER JOIN (((classes INNER JOIN classesTitles ON classes.classTitle = classesTitles.classTitleID) INNER JOIN classTime ON classes.classTime = classTime.timeID) INNER JOIN owners ON classes.classInstructor = owners.ownerID) ON classCatagories.catagoryID = classesTitles.ClassType
    WHERE  classes.classEnd <  01/01/#DatePart("yyyy", now())#
    ORDER BY classes.classStart, classCatagories.catagoryName, classTime.timeSlot, classesTitles.ClassTitle
    </cfquery>
    I don't get any results, but I should get a list of every class that has an end date before January 1 of this year - about 200 records.
    When I swap around the where clause to:
    <cfquery name="classes" datasource="#DSN#" dbtype="ODBC">
    SELECT classesTitles.ClassTitle, classesTitles.ClassDesc, classCatagories.catagoryName, classes.classStart, classes.classEnd, classes.classNotes, owners.fName, owners.lName, classTime.timeSlot, classes.classID, classes.classLimit
    FROM classCatagories INNER JOIN (((classes INNER JOIN classesTitles ON classes.classTitle = classesTitles.classTitleID) INNER JOIN classTime ON classes.classTime = classTime.timeID) INNER JOIN owners ON classes.classInstructor = owners.ownerID) ON classCatagories.catagoryID = classesTitles.ClassType
    WHERE  classes.classEnd > 01/01/#DatePart("yyyy", now())#
    ORDER BY classes.classStart, classCatagories.catagoryName, classTime.timeSlot, classesTitles.ClassTitle
    </cfquery>
    I get EVERY class in the database, and I should only be getting about 50
    The classes are about 8 weeks long, the begin date and end date are in the database as date/time fields, so I need to show everything that ended in 2010, regardless of when it started.
    I'm sure it's something glaringly obvious, but it's escaping me.
    THANKS
    Michelle

    The format of your date field in access is irrelevent to the situation at hand.  Use proper date objects instead of trying to build a suitable string.  For the first of January of the current year, the coldfusion functions createdate(), year(), and now() are your freinds.  Then, in case Adam's post was not clear, use cfqueryparam with the resulting variable.

  • Only return data from "First Occurrence" of a record?

    Post Author: cmainard
    CA Forum: Formula
    I have a table with per customer, multiple rows.
    For example:
    nameadd
    Family
    famorder
    Portfolio Name Three
    famsalu
    sperling_dale
    1
    814308-3 and 618887-4
    Mr. and Mrs. Dale R. Sperling
    sperling_dale
    2
    4724042
    Mr and Mrs Dale R Sperling
    sperling_dale
    3
    4734415
    Mr and Mrs Dale R Sperling
    sperling_dale
    4
    4734416
    Mr and Mrs Dale R Sperling
    sperling_dale
    5
    4724052
    Mr and Mrs Dale R Sperling
    I would like to ONLY return the field "famsalu" where field "famordr" = 1  
    Note that the punctuation is correct in the first record, but not in the others.  I still report on the other rows, but when returning "famsalu" can I make it Always be from where famorder = 1 ?
    Thanks!

    Post Author: V361
    CA Forum: Formula
    You can use the select statement, right click on your famorder field, select the select expert, your select may look like this     = "1"

  • Copy materail master only on selected fields

    Hi guru,
    I am exploring the possibility on copying exisitng materail master ( when createing a new matearil master ), only copy certain fields as deseired. Does anyone know if it's possible and where to do the config.
    Thanks

    Share your findings.
    Thanks,
    Anil

  • Cubeset to only return positive values?

    Yet another cube formula question... In Excel 2010, no powerpivot or olap pivottable extensions, this is a pure Excel project.
    I am building various cubeset, cubemember, and cubevalue formulas to validate an ETL process.
    Question:
    I need to create a cubeset that only returns the members of a cube that have positive values for a specific measure. This cubeset will then be one of several cubesets that gets fed into a cubevalue formula that would otherwise exceed the 255 char limit.
    I can create a cubeset for the overall measure:
    =CUBESET("MyCube","[Measures].[RetailPrice]")
    but haven't found the right syntax for limiting results to only those that have positive values, I think it would be something like:
    =CUBESET("MyCube","FILTER[Measures].[RetailPrice],[Measures].[RetailPrice]>0")
    This syntax actually doesn't return an error, so maybe it is valid syntax... but when I wrap it in a simple cubevalue statement,
    =CUBEVALUE("MyCube", A2)       where A2 is the Cubeset above, or if I also add date range and other filters,
    I get a #Value error, indicating that "the tuple is invalid" per
    http://office.microsoft.com/en-in/excel-help/cubevalue-function-HA010342391.aspx?CTT=5&origin=HA010342384
    I'm still a newbie with the cubeformula syntax and MDX, so I appreciate any suggestions!

    Hi Rohit-
    The cube has a net value of 1220 for the measure I'm trying to calculate (when I don't filter on > or < zero).
    I tried my formula both ways (looking for just positive, and just negative values) and while both work in the standalone cubeset formula, neither return a value when I use it in a cubevalue formula.
    My suspicion, other than a syntax error, is that this may have something to do with me trying to filter on the measure value(s), instead of a dimension- which I think must be possible, but again maybe not with this syntax.
    Let's assume that we had a total of 1280 in retail price, but due to a few returns, we have a few records that show value of -60. If we were looking at profitability, the 1220 is what matters. If we are looking at "dollars exchanged" as a variable expense
    driver of some other measure, then we'd actually want the absolute value of retail price (1280+60 = 1340). I hadn't been able to get the MDX ABS to work, so this was my attempt to grab the positive and negative numbers separately, and then add them to get
    the equivalent of ABS.
    In this case, slicers aren't a desirable option due to how the report is being constructed (I've used slicers in other reports with cubeformulas, but with Excel 2010 I have to have an extra pivot table to get the slicer value, which then has to get fed into my
    cubeform and I'm back at step 1, getting it to work in the cubeformula syntax)
    Thanks!

Maybe you are looking for