How to filter 2 Dimension on DS with script code

Hi experts,
coming from a discussion:
Not possible to filter for more than one dimension in Datasource script filter method?
I found necessary to open new discussion.
I have the following scenario:
I got a pie chart showing indicator for one dimension coming from BW DS.
I have DS initialized with:
On Column
Indicator -> Oportunity_mesure
On Row
Dimension -> type_dimension
In the dashboard, I need to filter this pie chart with Year/month and Representation Dimensions.
so on startup I script the follow:
DS1.setFilter("0CALLMONTH",varMonth);
DS1.setFilter("ZCREP",varRepr);
What I'm seen is that I don't get both filters on chart values. Is there a limitation? how can I solve it?
Thank you very much

Hi Oscar,
Your scenario is definitely possible and both filters should be retained.  Can you share the code where you populate the value of the variables varMonth and varRepr?
Thanks,
Mustafa.

Similar Messages

  • How can I print the "number lines" with the code in Visual Studio?

    How can I print the "number lines" with the code in Visual Studio?

    Hi BillionaireMan,
    What about your issue now?
    If you have resolved it, you can share the solution here, which will be beneficial for other members with the same issue.
    If you did not, please tell us more information,we will try my best to help you.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • [ForumFAQ]How to troubleshoot error "SSPI handshake failed with error code 0x80090324"

    Understanding the problem:
    When connect to SQL Server with Windows authentication, you may receive the following message in the SQL Server error log:
    SSPI handshake failed with error code 0x80090324, state 14 while establishing a connection with integrated security; the connection has been closed.
    Security Support Provider Interface (SSPI) is a set of Windows APIs that allows for delegation and mutual authentication over any generic data transport layer, such as TCP/IP sockets. SQL Server supports Kerberos indirectly through the Windows Security Support
    Provider Interface (SSPI) when SQL Server is using Windows Authentication.
    "SSPI Handshake Failed" error happens usually when connection failed between the server and domain controllers or failed Kerberos Authentication. There are many reason for SSPI Handshake error to appear in SQL Server error log.
    Troubleshot the problem:
    Download and install the Windows error code lookup tool Err.exe to view error descriptions for Windows Error Codes.
    The error code 0x80090324 (SEC_E_TIME_SKEW) means "clock on client and server machines are skewed". In most case, this is a Kerberos issue. Kerberos is using a timestamp to protect against replay attacks. The maximum time skew that can be tolerated
    between a ticket's timestamp and the current time at the KDC is 5 minutes by default.
    Also check the Windows Event Log of client machine, domain controller and the SQL Server machine for existence of W32time error messages.
    The solution:
    Make sure the clock of client server, domain controller and the server running SQL Server are within five minutes of each other. Or Resynchronize the clock by run w32tm /resync on client machine and SQL Server machine.
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    This error can happen due to Active Directory configuration issue or Network related issues. Assuming they are fine,
    another reason could be related to fail Kerberos Authentication to connect to SQL Server.
    In Windows 2003 and above, the default method of establishing a connection is Kerberos but if it fails, then connection may be established using NTLM. An error may be registered on SQL Server error log due to Kerberos failure.
    To confirm if you have any database connection using Kerberos authentication, run this on your SQL Server
    SELECT distinct auth_scheme FROM sys.dm_exec_connections
    If you only see NTLM and SQL then, there is no Kerberos connection.
    To use Kerberos, the client and SQL Server must be in the same domain or trusted domains and a Service Principal Name (SPN) must be registered with Active Directory for SQL Server service account.
    You can check if the service account already has SPN, by running this on the SQL Server
    setspn -l <domain\sqlserviceaccount>
    If you don't see anything starting with MSSQLSvc\ then the account is not setup with SPN.
    You can manually register SPN as a Domain Administrator using these commands.
    To      create an SPN for the NetBIOS name of the SQL Server use the following      command:
    setspn –A MSSQLSvc/<SQL Server computer name>:1433      <Domain\Account>
    To      create an SPN for the FQDN of the SQL Server use the following command:
    setspn      -A MSSQLSvc/<SQL Server FQDN>:1433 <Domain\Account>
    If SQL Server service account is granted "Validated write to service principal name" privilege in Active Directory, SQL Server database engine will register itself when it starts and unregisters at shutdown. If you Domain Administrators do not permit this setting
    then you should manually register the SPN and the SSPI error will go away.
    Also the SQL Server service account must be granted "Account is trusted for delegation" privilege in Active Directory. If your SQL Server connects to other SQL Server using Linked Server then the server must also be granted "Trust this computer for delegation
    to any service" privilege.
    For a named instance, you can use the FQDN of the named instance instead of SQL Server FQDN and use the port number.
    For a clustered server, you should use the FQDN of the SQL Server virtual name. In this case you will need two entries, one with port name and one without such as
    setspn -A MSSQLSvc/<Virtual SQL Server FQDN> <Domain\Account>
    setspn -A MSSQLSvc/<Virtual SQL Server FQDN>:1433 <Domain\Account>
    Kerberos authentication works when SQL Server, Service Account and Windows account accessing the SQL Server are in same windows domain. If anyone these are in different domain, there must be bidirectional trust established between the domains, otherwise it
    does not work.

  • How to Build Attribute Dimension Dynamically & Load with LCM?

    Hi, I'm trying to modify the existing outline at cilent's site. For some reason, when I pulled the outline with extractor, it didnt come out in the format that is compatible with Outline Load Utility. I was told to use LCM so I may still load with minimal to no modification to the existing structure of outline.
    So can I build dimensions dynamically in EXCEL then load with LCM and push to Planning?

    The log came back with many unrecognized headers in the outline. I spoke to Oracle Support many times, and they said that the format of our outline is improper for Outline Load Utility to read.
    Since the outline has already been incorporated, we are not allowed to many any significant changes. That is why we were advised to use LCM.
    I tried to use a sample of one of the existing attribute dimensions in XML as the base and build the new attribute but it failed. I would appreciate if you can provide steps by steps resources to show how to add new attributes to the existing outline.

  • How to filter the Dimension data automatically when data source is ESSBASE?

    Hi Experts,
    Since the datasource is ESSBASE,when I only drag the Dimension column for displaying, it will show any redundance value,and it will not be related with Fact Table.
    I try to edit the formual as below, it does not work.However, the datasource is relation DB, it will be OK. Why? Are there any missing steps?
    Whether it need the MDX , Thanks.
    Case when 1=0 then cast(Sales as char) else Year end
    OR
    Case when 1=0 then Country else Year end
    For example,
    Year
    1999
    2000
    2001
    2013
    2014
    2015
    ...

    Yes right,
    AFAIK there isn't a filter feature for Event Hub. The only way to have now is to put a specific property inside your EventData that consumer group can check to filter if it is interested in the data or not.
    Paolo.
    Paolo Patierno

  • How to set up a pdf embeded with different code so that people can get different excess code after they paid on-line?

    For example, I want to set up a pdf embeded with code, and send it on-line. People who want it should pay for it first and get the access code. I need to set different access code in order to avoid people A give the access to people B.

    Unless you use a very expensive DRM protection measure, I don't see how it's possible. How can you prevent someone from sending a file with the password to someone else?

  • How to get SAP application language only with SQL code

    Hi all,
      is there a way to get the current language only whith a sql query on the Database?
    I know that Ican find that information from the Application object of the UI Api but in this case i can't access them.
    Thanks in advance, Luca.

    Hello
    You cannot get the Application language (GUI Language) from SQL, because it is stored on the client machine filesystem
    Location is defined in
    C:\Program Files\SAP\SAP Business One\Conf\b1-config-path.txt text file, which by defaulf is:
    %USERPROFILE%\Local Settings\Application Data\SAP\SAP Business One\b1-current-user.xml file
    Regards
    J.

  • (now with script code) droplet not creating folder cs4 photoshop windows 7

    (i also posted this in the windows section but was told i should post here insted so i will try to close that one out)
    so i created a script that creats folder and subfolders inside (  folder1\subfolder1\subfolder2 etc" and i run the script in photoshot cs4  11.01 it creats the foldets no prob.  yet when i creat a droplet it wont  work. the folders dont get made... i have admin rights and am logged in  as admin all the time. when the droplet is run it will either launch  photoshop or bring the running photoshop to the front, the taskbar icon  flashes and after a min or 2 i get the error, " droplet couldnt  communicate with photoshop"
    can anyone help me out on rhis please?
    thank you  and have a great day.
    ok, please dont laugh at me over my poor scripting skills. i have none and have never programed.  ok here is the script i use to make folders
    var myFolder = new Folder('/d/Documents and Settings/testing/Desktop/tiff');
    if(!myFolder.exists) myFolder.create();
    var myFolder = new Folder('/d/Documents and Settings/testing/Desktop/tiff/800med');
    if(!myFolder.exists) myFolder.create();
    var myFolder = new Folder('/d/Documents and Settings/testing/Desktop/tiff/1333med');
    if(!myFolder.exists) myFolder.create();
    var myFolder = new Folder('/d/Documents and Settings/testing/Desktop/tiff/large');
    if(!myFolder.exists) myFolder.create();
    var myFolder = new Folder('/d/Documents and Settings/testing/Desktop/tiff/mls467');
    if(!myFolder.exists) myFolder.create();
    var myFolder = new Folder('/d/Documents and Settings/testing/Desktop/tiff/mls533');
    if(!myFolder.exists) myFolder.create();
    var myFolder = new Folder('/d/Documents and Settings/testing/Desktop/tiff/thumb');
    if(!myFolder.exists) myFolder.create();
    so i hope this helps in the quest to solve my probs.
    hb

    Also the path itself looks strange as Documents and Settings is usually on drive C also the desktop is normally on drive C.
    This path would normally be:
    var myFolder = new Folder("~/Desktop/tiff"');

  • Standard Reports with T codes.

    Hi All,
               How to get all the Standard reports with T-codes as a list in MM functionality.

    U can get reports from MC01 Transaction also.
    Copy the reports from following link,
    http://www.sap-img.com/materials/list-of-standard-reports-in-mm.htm
    Edited by: Anand K on Apr 17, 2008 12:28 PM

  • How create filter in olap universe with MDX LIKE Function

    Hi all
    I need to create a filter in a olap universe with the LIKE MDX function.
    Problem:
    There is a dimension with account numbers whit 10 digits like this: 5683492703 and i need to create a filter whit all account numbers whit the number 7 in the sixth position in a olap universe.
    How to do this?
    Thanks all

    Try like this :
    <FILTER KEY="[Level Object Definition]">
         <CONDITION OPERATORCONDITION="Like">
              <CONSTANT CAPTION="_____7*"/>
         </CONDITION>
    </FILTER>
    Not sure if it is _ or ? to represent a single character. Try ? in place of _ if the above code doesn't work.
    Regards

  • 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 with mime types

    Again thanks for the help getting up and running.
    Now that I am up and running I know my task at hand and I have comleted most of it except for a couple of things. Here is my task:
    To have 1 URL filter lists. Lets call it WhiteList-special. What my manager wants is this.
    To all URL's matching the WhiteList-special filter allow the connections filtering out a set of mime types.
    To all URL's not in the WhiteList (still allow them them) but apply a different set of mime type restrictions.
    How can I go about doing this? Do I use the http:// resource and set up the whitelist-special there with a mime list and then in default set up an allow list of basically .* with a different mime type list ??
    Also I noticed that in the mime.types file gnu zip (.gz) was listed as an encoding and not application. Thus if I include the gz mime type in my <Filter "filter-ct" ...> line the gz seems to be ignored. I block all other mime types that are of the application type but I cannot block any encoding type. Am I doing something wrong?
    thanks
    Doug

    Here is what you can do:
    (the simplest way)
    Use a filter that will add a variable to all the mime-types that you want to whitelist.
    Then use a filter to deny all the other types. In the below code, the identity filter is the one that you can use to touch all the whitelist -- (below, it only allows text/plain), and the deny filter will deny all the rest.
    To your question on content-type, check how the content-length is obtained in the below code.
    -------obj.conf------------
    <Object ppath="http://.*">
    ObjectType fn="cache-enable" query-maxlen="10" log-report="off"
    ObjectType fn="cache-setting" lm-factor="0.10" max-uncheck="7200"
    Output fn="insert-filter" type="text/plain" filter="identityfilter"
    Output fn="insert-filter" type="*" filter="denyfilter"
    Service fn="proxy-retrieve" method="*"
    </Object>
    |cat identityfilter.c
    * Usage:
    *     At the end of magnus.conf:
    *         Init fn="load-modules"
    *              shlib="<path>/identityfilter.<ext>"
    *              NativeThread="no"
    *     Inside an object in obj.conf:
    *         Output fn="insert-filter"
    *                type="text/*"
    *                filter="identityfilter"
    #include "nsapi.h"
    int identityfilter_insert(FilterLayer *layer, pblock *pb) {
        pblock_nninsert("identityfilter", 1, layer->context->rq->vars);
        return REQ_PROCEED;
    void identityfilter_remove(FilterLayer *layer) {
    int identityfilter_write(FilterLayer *layer, const void *buf, int amount) {
        return net_write(layer->lower, buf , amount);
    NSAPI_PUBLIC int nsapi_module_init(pblock *pb, Session *sn, Request *rq) {
        FilterMethods methods = FILTER_METHODS_INITIALIZER;
        methods.insert = &identityfilter_insert;
        methods.remove = &identityfilter_remove;
        methods.write = &identityfilter_write;
        const Filter *filter = filter_create("identityfilter", FILTER_CONTENT_TRANSLATION, &methods);
        return REQ_PROCEED;
    |cat denyfilter.c
    * Usage:
    *     At the end of magnus.conf:
    *         Init fn="load-modules"
    *              shlib="<path>/denyfilter.<ext>"
    *              NativeThread="no"
    *     Inside an object in obj.conf:
    *         Output fn="insert-filter"
    *                type="text/*"
    *                filter="denyfilter"
    #include "nsapi.h"
    int denyfilter_insert(FilterLayer *layer, pblock *pb) {
        char* processed = pblock_findval("identityfilter", layer->context->rq->vars);
        if (!processed) {
            pb_param *pp = pblock_remove("content-length", layer->context->rq->srvhdrs);
            if (pp) param_free(pp);
            layer->context->data = (void*)1;
            Request* rq = layer->context->rq;
            rq->status_num = 403;
            pp = pblock_remove("status", rq->srvhdrs);
            if (pp) param_free(pp);
            pblock_nvinsert("status", "403", rq->srvhdrs);
        } else {
            layer->context->data = (void*)0;
        return REQ_PROCEED;
    void denyfilter_remove(FilterLayer *layer) {
    int denyfilter_write(FilterLayer *layer, const void *buf, int amount) {
        if ( layer->context->data ) return IO_ERROR;
        else return net_write(layer->lower, buf, amount);
    NSAPI_PUBLIC int nsapi_module_init(pblock *pb, Session *sn, Request *rq) {
        FilterMethods methods = FILTER_METHODS_INITIALIZER;
        methods.insert = &denyfilter_insert;
        methods.remove = &denyfilter_remove;
        methods.write = &denyfilter_write;
        const Filter *filter = filter_create("denyfilter", FILTER_CONTENT_TRANSLATION, &methods);
        return REQ_PROCEED;
    -----------------------------------What is my best approach? Can I simply call another Filter from mine?
    check out func_exec and friends in nsapi.

  • How to filter by attributes with type Strings

    The documentation is not really detailed about setting attributes with type Strings. I assume I've to type each string value in a new line in the set attributes dialog box. This works fine and my XML looks like this<br /><br /><para CMS = "prodA prodB"><br /><br />having set the two string values "prodA" and "prodB".<br /><br />But how to filter these attributes? The filter CMS="prodA" shows my paragraph correctly, but CMS="prodB" does not show this paragraph as it should. Filters seem to match only the first of the set of string values.<br /><br />I would like to show this paragraph in two document versions for these two products prodA and prodB.<br /><br />Framemaker 8.0.3<br /><br />Tilman

    Tilman,
    this is something that AFAIK is not supported by FrameMaker's own attribute based filtering.
    But, without changing your documents, if you install the *free* ABCM (Attribute-based condition management) plug-in from weststreet consulting, you will succeed. Be sure to read the tutorial!
    http://weststreetconsulting.com/
    - Michael

  • How can I transfer my photo taken with iPhone5 filters maintaining filter effects ? I always have colored photo without filter effect on my iMac !!!

    How can I transfer my photo taken with iPhone5 filters maintaining filter effects ? I always have colored photo without filter effect on my iMac !!!

    no completely satisfactory answer but you can :
    1) email photos to yourself (tedious if you have a lot of filtered)
    2) create shared file in iPhone and bring into iPhoto (and maybe Aperture - not tested yet) with filter effects
    3) import to iPhoto and add effects from there (likely needs latest version to mirror iPhone filter)
    see this thread for more explanation on these workarounds: iPhone isn't transferring photos taken with built-in filters

  • How to build an EVDRE input schedule with more than 3 dimensions?

    Hello experts,
    can anybody tell me, how to build an EVDRE input schedule with more than 3 dimensions?
    How must the parameter configuration (expansion 1, 2, 3, 4) and range configuration (ColKeyRange, RowKeyRange, PageKeyRange) look like? If anybody could post an example, how such an input schedule could look like, I would be very thankful.
    Best regards,
    Stefan

    Well, posting an example might be quite difficult.  But there is no right-or-wrong approach.  Since Inputs are made at the lowest or base level members of all dimensions, the key is to determine which dimensions you want in your expansion, to be able to gather the input.  Otherwise, you may only need a couple of nested dimensions.  But if you open BPC for Excel, open a blank workbook and in any cell type [ =EVDRE() ], then press refresh, the DRE wizard will allow you to select your nested row and columns for the report, and then build a basic report for your foundation. 
    I personally like to NOT expand my columns, and only nest 2 or 3 row member sets, depending on the details we need for input.  SOmetimes, the whole input schedule is without any expansions, and just refreshes based on the CV changes, such as entity, category, time etc.
    If you need more details, keep posting what you are trying to accomplish and we will try to help.

Maybe you are looking for

  • Certificate contains unsupported critical extensions

    Hi, I have a Java client talking to the Active Directory and SunOne directory servers. During SSL Handshake with a directory server, when there is no trusted cert for a domain, Java client reads the cert using the code below and stores in locally for

  • Creating Tcode for Custom Table

    Hi all,           I have created a custom table ZSALESMANAGER, I have created a Maintenance view for this table ZSALESMANAGER_MV. I have to create a custom Tcode for this maintenance. so that when the i enter this tcode i should get the maintenance v

  • How do I remove extra mail boxes

    I am trying to remove extra mail boxes from my iPad 1, with no success. Help please

  • How do I import a site template into bc?

    Hello all, I just bought an HTML template from theme forest and wanted to import it into BC. I have DW 5.5 and am on the FREE BC setup. How do I do that? Thanks

  • Pulling data from Google Spreadsheet?

    Has anyone had any luck pulling data into extendscript from a google spreadsheet?  I realize I have to use bridge to make the connection, but I'm wondering about how to actually pull the data.