How to filter on an aggregate measure but before aggergation is applied?

Hi,
When I include a measure in filter section (for eg: sale_amount > 10000 ), while having marked the measure with default aggregation as SUM in the BMM layer of RPD, I see the filter gets applies on the aggregated value. ie, the filter is applied after aggregating the sale_amount. But the requirement is to filter and identify the rows with sale_amount > 10000 and then aggregate. To accomplish this, I do not want to expose sale_amount two times in the presentation layer (once with aggregation enabled in BMM and another without aggregation), as this will confuse my power user community.
How can this be done?
Thanks,
SD

Hi SD,
Try using 'FILTER USING' on your measures column for this requirement. This one sends the filter as a where clause in the query, by which the database would apply the where clause first to retrieve the records then would perform a summation on it.
Hope this helps.
Thank you,
Dhar

Similar Messages

  • How to filter out inbound Read receipts but prevent prevent notification to sender

    Greetings,
    For Exchange 2007, we would like to prevent external users from sending Read Receipt requests to our users.  In the Outlook client, we can easily disable this.  But for EAS users, their smartphones send a reply as soon as the email is opened.  I've
    applied a Hub Transport rule to strip out the "Disposition-Notification-To" from inbound emails but this causes a different message to be sent to the sender, "Delivery to these recipients or distribution lists is complete, but delivery
    notification was not sent by the destination:".   As a test, I've now also unchecked "Allow Delivery Reports" for Remote domains, but will this work?  Should both settings be applied to avoid generating the response to senders as noted
    previously?
    Thanks

    Hi,
    From your description, you want to prevent the external users from receiving the read receipts of internal users.
    You can create the following transport rule to achieve it. (Note: Because we use the "Read" as subject key word, it will delete the messages whose subject contain "read", please pay attention to use it.)
    What's more, I have a test in my lab. If I choose "Read:" as subject key word, the transport doesn't work. When I choose "Read" as subject key word, it works.
    Besides, to force an immediate update of transport rule, you can stop and start the Microsoft Exchange Transport service.
    Hope it helps.
    If you need further assistance, please feel free to let me know.
    Best regards,
    Amy
    Amy Wang
    TechNet Community Support

  • SAP Query: How to filter records from SAP Query output before display

    Hi Friends,
      Can I delete records from an SAP query basic list before it is displayed?
    For example I want to delte all the orders whose system status is "RELEASED" before the basic list of that SAP query is displayed.
    I have gone through SAP help and found out that we can write some code in <b>END code</b> section which will execute before the basic list of the query is displayed. But I could not figure out how the code this...following is an excerpt form SAP help.
    <b>"The END-OF-SELECTION code consists of two parts (Before list output and After list output). The first part is processed before the list is output and the second part afterwards."</b>
    Can anybody help me?
    Regards,
    Bharat.
    Message was edited by:
            Bharat Reddy V

    Try this simple procedure. <b>Hope</b> this should work for you.
    You do the slection of the status in the List-Processing. say your final field of status flag is GF_STATUS.
    Immediatly after that use this within the List-Processing.
    CHECK GF_STATUS EQ '<RELEASED STATUS>'
    How it works:
    SELECT  <>       "<-------Query processing(system code).
    *< Your code put in the List processing
    CHECK GF_STATUS EQ '<RELEASED STATUS>'   "< --only released records passed.
    *>
    ENDSELECT      "<-----Query endselect(system code).
    Please let me know the result.
    Regards,
    A.Singh
    Message was edited by:
            Amarjit Singh

  • HOW do I remove SPs after uncompressing BUT before applying???

    I've uncompressed some Support Packages that I do not need to apply ... ie. IS-OIL, I accidently unpacked this item and do not have to apply it.
    Thanks
    maria

    Hi Maria,
    Decompressing .SAR or .CAR file is nothing but creating the .ATT and .PAT files in the OS level. it's by default compressed to DIR_TRANS\eps\in. (the same thing is done by putting .SAR file in /trans and then uncar by sapcar to /trans/eps/in.. in the case of uncar by sapcar tool in the server)
    If you don't need to apply that, then its okay.. not mandatory to delete the .att and .pat files. but if you don't want something to stay on your trans folder unnecessarily, then you may search for those .ATT and .PAT of IS-OIL then delete them manually.
    .ATT gives the attributes of the patch.. you can know by reading it which one is for IS-OIL.
    or the easiest way would be to take the .CAR or .SAR file somewhere in a dummy folder and uncar there by sapcar tool to see the exact .att and .pat files and then search for the same files in /trans/eps/in folder and delete.
    Regards,
    Debasis.

  • Report with same measure but opened by 2 different level of emp hierarchy

    Hi all, I need to have a report with columns like these:
    COLS: Region -- Employee Level 3 -- Product Class -- Forecast ($) for Emp Level 2 -- Forecast ($) for Emp Level 2
    SAMPLE: NAS -- Anthony Fernicola -- Apps -- 100 (forecast for Anthony) -- 500 (forecast for Anthony's manager which is Keith Block)
    I mean, on the report criteria I drag those columns and and from the emp hierarchy dimension I drag that EMPLOYEE LEVEL 3 column since the report must show all those employees for that level, but as you can see on the same line of the report we should show as well the forecast for the manager, in this case the EMPLOYEE LEVEL 2..
    To get that measure I tried:
    1) on the formula the SUM (forecast($)) BY EMPLOYEE LEVEL2 but the data is not matching the real data..
    2) I also tried to use the FILTER function on the formula but I don't know how to filter it since it requires a filter_expression that I cannot give, I just want to show on that "Forecast ($) for Emp Level 2" column the forecast measure by that level 2..
    3) I also tried UNION but on the results the report is showing as well the LEVEL 2 for the employee and we do not want it since we want to show all LEVEL3 only...
    do you know how to do this?
    thank you!!!!

    Are you sure the brackets are in the right location?
    This:
    SELECT
    0 s_0,
    "A - Sample Sales"."Sales Person"."E1 Sales Rep Name" s_1,
    "A - Sample Sales"."Sales Person"."E9 Manager Name" s_2,
    "A - Sample Sales"."Base Facts"."1- Revenue" s_3,
    SUM("A - Sample Sales"."Base Facts"."1- Revenue" BY "A - Sample Sales"."Sales Person"."E9  Manager Name") s_4
    FROM "A - Sample Sales"
    ORDER BY 1, 3 ASC NULLS LAST, 2 ASC NULLS LAST
    works fine for me
    Regards
    John
    http://obiee101.blogspot.com
    http://obiee11g.com

  • In BI how to filter the selection options based on inputs on top field

    Hi Friends,
    In BI, How to filter the selection options based on inputs on top field.
    The system should automatically filter the lower level drop downs based on the selection of a higher level.
    For e.g. :
    If a user selects a Country then the States drop down should only display the State's belongs to the Country. Similarly when a State is selected, the District drop down should display only those District's belongs to the State.
    Thanks in Advance.
    Regards
    Jayaram M

    Hi Anil,
    Thanks for reply but I couldn't use Compounding Characteristic here. Need some other solution.
    Regards
    Jayaram M

  • R12: How to filter AP and PO Accrual Reconciliation Report based on GL Date

    Hi,
    Anybody know how to filter AP and PO Accrual Reconciliation Report based on GL Date from and GL Date to in R12?
    Since we just upgraded from 11.5.10 to 12.1.3 and found we cannot filter those report for specific date. It shown all data included the old data from 8 years ago also.
    We need to run the report only for specific date only. Please share with me if anyone know about this.
    Thanks.

    In 12 you can rebuild and run the report for a particular period, but not a single day if that's what's required

  • How to filter the Rest Api data based on Taxanomy columns

    Hi Everyone,
    We are using SharePoint2010 Standard Edition.
    I wanted get the library details through REST Api. I am using as below:
    https://SiteUrl/_vti_bin/listdata.svc/Documents?$filter=Title eq 'SharePointDoc'
    Here I am able to get the info regarding "SharePointDoc". But when I am trying to get the details from Taxonomy filter, it didn't.
    Can anyone please tell me how can we filter based on Taxanomy fields.
    Thanks in Advance
    Krishnasandeep

    Hi,
    I understand that you wanted to filter the Rest Api data based on Taxanomy columns.
    Per my knowledge, in SharePoint 2010 , not all types of column are available via REST, most annoyingly managed metadata columns are amongst this group of unsupported column types.
    However, in SharePoint 2013, we can filter list items based on taxonomy (managed metadata) columns.
    Taxonomy fields can be now called via REST API using CAML query in REST calls.
    Here is a great blog for your reference:
    http://www.cleverworkarounds.com/2013/09/23/how-to-filter-on-a-managed-metadata-column-via-rest-in-sharepoint-2013/comment-page-1/
    You’d better to change the REST calls and the CAML query to check whether it works in SharePoint 2010.
    More information:
    http://platinumdogs.me/2013/03/14/sharepoint-adventures-with-the-rest-api-part-1/
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • How to filter the data in different sections (e.g. Report Footers)?

    Hi,
    I am using Crystal Reports 11 to generate cross-tables.
    I plan to generate 3 cross-tabs, and each cross-table will be put in a section. For example, cross-tab1 in Report Footer a; cross-tab2 in Report Footer b; cross-tab3 in Report Footer c.
    I know use "Select Expert" to filter data. But, it seems that "Select Expert" filters data for the whole report.
    I want to filter the data for each cross-table separately. For example, filter cross-tab1 based on condition1; filter cross-tab2 based on condition2; filter cross-tab3 based on condition3.
    How to filter the data in different sections (e.g. Report Footers)?
    Thank you in advance.

    Hi,
    Now that you've inserted the subreport just right-click the sub-report and click Edit. The Design page for sub-report should open up.
    You can now insert the cross-tab on the Report Header and insert a record selection formula of your choice.
    Also, suppress all the other sections of the subreport so the Main report only shows the crosstab without any spaces.
    Do the same for all the subreports.
    -Abhilash

  • How do I mark a "not measurable" event on a chart history?

    I have an application which is working very well and takes measurements - continuously plotting a result on a chart. The chart history is typically a 100 or so measurements. I plot on the chart both an upper and lower tolerance limit, hence the measurment plot should hopefully stay between the two (straight lines) limits.
    Occasionally a sample is "missing" and when this happens a "measurement" of zero is given. This is currently displayed on the chart as a sudden drop to zero. The users like this as it shows them clearly that the sample was missing. All OK so far, however...
    On rare occasions a sample is present and is measured but for reasons I will not go into we know (and the software can determine) that the measurement result is actually invalid. This situation I call "not measurable" in that although a sample is present it actually cannot be properly measured. The question is this; how do I show this on my chart history?The chart history plot is by far the most looked at display of data for the users. I realise that I could show a message box saying "not measurable" (and intend to do so) but this would only last for that measurement cycle. How do I "mark" the chart to show that there was a sample but that it was not measurable.
    I don't particularly want to use a zero value because that is being used quite nicely for the "no sample" situation. Also I don't want to simply not plot anything because the fact that the sample was "not measurable" is potentially very important indeed. Ideally what I would like is to put a marker, say a thick vertical line at the position where the invalid measurment is, in order to both block it out to show that it is wrong and also show there actually was a sample there in the first place.
    Any ideas as to how I can do this? Sorry this is a bit wordy!
    Regards
    Kevin

    Hi
    I have come up with a quick fix for using a chart which might give you a few ideas. This is just a quick fix and isn’t very nice at all. The green dots are meant to represent the immeasurable data, I have just triggered them by a set of limits. You would be better of using an XY plot and an array which you constantly up date. Using an XY graph will give you a lot more options such as using cursors to mark certain points.
    I have attached my quick fix and an example of using text on an XY graph
    Hope this at least gives you some ideas
    Tim
    AE NI UK and Ireland
    Attachments:
    quick fix.vi ‏17 KB
    Text_by_Points_on_XY_Graph[1].vi ‏32 KB

  • How to Filter Email or Direct Email to a Specific Folder

    Hi
    I've just bought a Blackberry Z10 but I cannot find how to filter my email. I was able to do this on my older Blackberry Edge.
    What I'm trying to do is filter emails by subject, sender, or other parameters. Alternatively, I would like to be able to direct email from specific senders into a seperate folder. As I said, I could do this on my BB Edge but I've searched the web to no avail.
    Any help would be much appreciated.
    Thanks George

    Hi George,
    Thanks for your question on email filtering.
    What type of email account are you using - ActiveSync, Gmail, Hotmail POP/IMAP etc?
    What type of email are you trying to filter - junk email or emails from a specific contact? 
    Thanks!
    -HMthePirate
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • How to filter a metric in a form EPM Cloud?

    How to filter a metric in a form?
    I have a form that shows a dimension in the grid and one of the columns of that dimension have to filter the data.  For example: The dimensión Account with the member "Type".  This member is associated to a smarlist, I need to filter by a valor of this smarlist.
    Thanks.
    Elena

    Hello Suresh,
    I am not sure exactly what you are refering to, but in case :
    In Infoview of XI 3.x, you have to click on "Open->Dashboard and analytic" then "performance Manager->Metrics".
    I recommend you to read the well-done "training" PDF  "xi3-1_getting_started_performance_manager_en.pdf"
    The PDF should be on SAP site.
    Samuel.

  • How to filter Key Figures - not using the GUIDs

    An example How to filter Key Figures may look like this:
    http://XXX.com:8000/sap/bw/BEx?sap-language=DE&bsplanguage=DE&CMD=LDOC&TEMPLATE_ID=XXX&FILTER_IOBJNM=41F68RV4ZB5VYSARODYU70CAQ&FILTER_VALUE=41F68SAI18DB01DO023IR49QA
    The GUIDs consume the space in the URl. Is there a way to work with an alias.
    To use the technical name of a Key Figure defined in the Query does not work.

    Hi Cherie,
    This is exactly the type of problem that I'm currently trying to figure out. I'm trying to following your solution but I'm not clear on how you actually achieved this in you last note. I want to dynamically select actuals/budget column fields based on what period I enter. I thought about creating 12 separate RKF fields for actuals and 12 separate RKF fields for the budget reforecast and outputting these all and then doing some VBA to hide the fields not required based on which period was selected... how is your variable ZFYAPER7 defined and calculated?
    Cheers

  • How to filter certificate templates in Certificate Authority snap-in with the correct values

    How to filter certificate templates in Certificate Authority snap-in with the correct values
    I have a 2012 R2 server running Microsoft Certificate Authority snap-in.
    I want to do a filter on a specific Certificate Template which i know exists in the 'Issued Certificates' folder.
    All the documentation i can find seems to suggest i copy the certificate name and use this in the View Filter.
    1). I add the 'Certificate Template' option into the Field drop-down.
    2). I leave the Operation as the '=' symbol
    3). I paste in just the name of the template in question. for example: 'my computers'
    The search results always come back blank 'There are no items to show in this view.' even when i know there are many instances of this template. I've tried on a win 2008 server and same issue.
    Is there a correct value to enter for the Certificate Template name?
    Can this be done easier using certutil commands?
    When i run the certutil tool i can confirm i have several issued templates. Certutil -catemplates -v > c:\mytemplate_log.csv
    Anybody know what i'm doing wrong?
    I seem to be getting nowhere with this one.

    > But its important you are using the template name, not the display name
    this is incorrect. OIDs are mapped to *display name*, not common name (it is true for all templates except Machine template). That is, in order to translate template name to a corresponding OID, you need to use certificate template's display name. And, IIRC,
    template name in the filter can be used only for V1 templates. For V2 and higher, OID must be used.
    My weblog: en-us.sysadmins.lv
    PowerShell PKI Module: pspki.codeplex.com
    PowerShell Cmdlet Help Editor pscmdlethelpeditor.codeplex.com
    Check out new: SSL Certificate Verifier
    Check out new:
    PowerShell FCIV tool.

  • How to filter simpleChat messages (private chat)

    So I tried to find the solution, but after several hours, I can't find how to do it.
    My use case:
    There is one host for a room. Others users in the room can only talk to the host, and the users can only see their private discussion with the host. Users can see the chat component only when the host is connected.
    The host use another application in which he can see the list of users who are talking to him. He can select a user in the list, and he see a simple chat with only the messages between him and the selected user.
    What I have completed (I think it can help others in the future, and maybe there are better way to do it):
    * In the user application: use the userManager property of your ConnectSessionContainer. It has an arrayCollection named hostCollection concerning the hosts who are currently connected.
    In my case, I put the chat components into a container, and use a binding to the visible property:
    visible="{connectSession.userManager.hostCollection.length>0}"
    You can also add an event listener to the userManager and listen for UserEvent.USER_CREATE and USER_REMOVE and check if event.userDescriptor.role==100  or checking the hostCollection.length of the userManager again.
    * If you subclass simpleClass, you can access to the _toCombo which is the combo box of the chat.
    You can set its visible property to false, and set its selectedItem to the first object in its dataprovider which role is equal to 100 in order to force the chat to be private with the host.
    * In the host application, you can create a list that use the ConnectSessionContainer.userManager.audienceCollection as dataProvider to have a list of the users.
    It's easy to set the combobox of the simple chat to speak only to the selected user, but what I haven't been able to do is to filter the history to only show the conversation with the selected user, and not other messages, without creating several rooms.
    I looked into the source code, but the history property of the simpleChatModel is just a string, and haven't find an easy way to filter it.
    I looked for an arrayCollection of the history nodes, because I could have use the filter property of the collection, but I haven't find it.
    So, where should I look, and what is the best way to filter the history using the recipient_Id?
    Thank you for your help...
    Sorry for the long post, but maybe it will help someone in the future...

    Thank you for your response Hironmay,
    I made some great progress by sub-classing both the simpleChat and simpleChatModel classes.
    I read on Nigel twitter feed that he hates private, and I can thank him for his love of protected members, because it made my job so much easier!
    I will explain what I did in the interest of other users, but I've got one last question: 
    In the Room Console AIR app, there is an "retract all items" in the node details of the explore tab. 
    I want to build the same button in my host chat application, but I haven't find a way to do it. 
    There is a retractItem method on the CollectionNode class, but it requires the itemID and I haven't find a way to access every item in the chat history in order to get their itemID. 
    I tried the clear() method of the chatModel, but it cleared only the current session, and leave the items in the server, and when the host logout, the items reappears when the host login again. 
    On the bright side, here is what I use for my applications:
    - Subsclassed the simpleChat in hostChat and clientChat classes, and the simpleChatModel in HostChatModel and ClientChatModel
    - subclass the ChatMessageDescriptor ==> PrivateChatMessageDescriptor with 2 properties: userConcernedId and fromHost (boolean)
    - override in the HostChatmodel the addMessage function to obtain  PrivateChatMessageDescriptor instances, and I add them in an ArrayCollection
    - When the host select a user in the RosterList, a filter is used on the ArrayCollection, and the HistoryTextArea is updated to show only the thread between the host and the user. The _toCombo is updated to send private message to this user.
    - I override the updateTypingIfNeeded method of HostChat to use a SharedProperty which contains the userId of the selected user when the host is typing or an empty string. This way, in the clientChat, I only show for the user when the host is typing a message for him, and not when other users are typing.
    - I replace the TextInput by a TextArea to enable multiline input (well, this one opened lots of problems to fix, but I have)
    - A lots of other tweaks  
    So as you can see, I made it
    But I look forward to a new set of sparks component, because it would have been much easier to extend the SimpleChat without rewritten half of it. 
    And here are some of my feature requests: 
    - In the SimpleChat class, add a protected getAndInitModel() , which would be called in the subscribe method. This way, one can switch the model without overriding the subscribe method of the Chat class.
    - Have a "multilineInput" property in the SimpleChat class to chose a TextInput or a TextArea as the user input component.
    - Provide a way to enable Host/Users interaction directly in the pods without having to create a new room for each user to "separate" them.
    I think a lot of use cases for LCCS would be to implement solutions for Customer Experience, and that will need more focus on what the host can do (private chat, ...) 
    Thank you again for your help, and thank the entire teams for this incredible service. 
    Dimitri K.

Maybe you are looking for