Filter Function Performance Improvement

We have the Derived Measures created as calculation in the MDX Cube design. Whenever we use those metric in reporting, it's getting timed out and it executes for about 60 minutes in SSMS and timed out as well.
Sum(    Filter([Standard Type].members,
        instr(1,"[Happy]","["
        + cstr([Standard Type].currentmember.Name) + "]") > 0),
[Measures].[Total People])
Any idea on improving the above formula/expression to use for the measure ? Please advise.

You are correct you will get an error. It will show as #VALUE! in Excel PivotTables.
Instead of using some very slow Filter and InStr functions, try this instead to avoid the errors:
create member CurrentCube.[Measures].[Test Invalid Reference] as ([Standard Type].[Standard Type].[Happy], [Measures].[Total People]);--if Happy doesn't exist, null out the measure
(iif(IsError([Standard Type].[Standard Type].[Happy]),[Measures].[Test Invalid Reference],{})) = null;
The advantage of this approach is that upon the user connecting, it will evaluate whether Happy exists once. Your approach runs inside each cell calculated at query time.
http://artisconsulting.com/Blogs/GregGalloway

Similar Messages

  • Performance improvement in a function module

    Hi All,
    I am using SAP 6.0 version. I have a function module to retrive the PO's . for just 10,000 records its taking long time.
    Can any one sugguest the ways to improve the performance.
    Thanks in advance.

    Moderator message - Welcome to SCN.
    But
    Moderator message - Please see Please Read before Posting in the Performance and Tuning Forum before posting
    Just 10,000 records? The first rule in performance improvement is to reduce the amount of selected data. If you cannot do that, it's going to take time.
    I wouldn't bother with a BAPI for so many records. Write some custom code to get only the data you need.
    Tob

  • Missing the filter function in the new version of Spotify? Come over here.

    Hi folks,
    Many of you have requested we re-add an option to filter from artist, album and playlist pages in Spotify. We're considering this feature for newer versions of the application but we're investigating the best solution. Therefore, we have a question which will help us make this feature even better than before:
    What did you mainly use the filter function in Spotify for? 
    Please reply to this thread with your answer.

    @Spotify What sort of kind of question is this? Are you implying that no one at Spotify has a basic understanding of usability? It sure seems like it. First, I have to ask why would Spotify ever remove a feature that is in active use? Second, why do the product managers/developers at Spotify not understand the existing use of "find" or "filter"? The reason this feature was put into the product is the reason it should stay in the product. This sort of functionality has existed in computer interfaces for decades. Visual search (i.e. having a human being visually scan every item manually) is very slow and prone to error. When there is more than a little information on the screen, having the computer search for the human is much more efficient and less prone to error. I would suggest everyone at Spotify get as much remedial education as possible in usability. Here's a place to start: What — Definition of UsabilityUsability is a quality attribute that assesses how easy user interfaces are to use. The word "usability" also refers to methods for improving ease-of-use during the design process.Usability is defined by 5 quality components:Learnability: How easy is it for users to accomplish basic tasks the first time they encounter the design?Efficiency: Once users have learned the design, how quickly can they perform tasks?Memorability: When users return to the design after a period of not using it, how easily can they reestablish proficiency?Errors: How many errors do users make, how severe are these errors, and how easily can they recover from the errors?Satisfaction: How pleasant is it to use the design?There are many other important quality attributes. A key one is utility, which refers to the design's functionality: Does it do what users need?Usability and utility are equally important and together determine whether something is useful: It matters little that something is easy if it's not what you want. It's also no good if the system can hypothetically do what you want, but you can't make it happen because the user interface is too difficult. To study a design's utility, you can use the same user research methods that improve usability.Definition: Utility = whether it provides the features you need.Definition: Usability = how easy & pleasant these features are to use.Definition: Useful = usability + utility.Even using these basic principles, it is easy to see the reasons that Ctrl/Cmd-F should be put back into the product. Measure how long it takes users to find music on a long playlist or long search results page without Ctrl/Cmd-F. And then measure with it. The only failures with the original design of find/filter were (a) that it was less discoverable than it should be in the GUI, i.e. no GUI icon cue and (b) it didn't filter/find using substrings very well or at all. It pains me be a customer of a company where the original wisdom of the people who built the UI of the v0.8.5 client (and previous versions) has apparently been flushed down the drain.  

  • Why GN_INVOICE_CREATE has no performance improvement even in HANA landscape?

    Hi All,
    We have a pricing update program which is used to update the price for a Material Customer combination(CMC).This update is done using the FM 'GN_INVOICE_CREATE'.
    The logic is designed to loop on customers, wherein this FM will be called passing all the materials valid for that customer.
    This process is taking days(Approx 5 days) to get executed and updated for CMC of 100 million records.
    Hence we are planning to move towards HANA for better improvement in performance.
    We designed the same programs in the HANA landscape and executed it in both systems for 1 customer and 1000 material combination.
    Unfortunately, both the systems gave same runtimes around 27 seconds for execution.
    This is very disappointing thinking the performance improvement we should have on HANA landscape.
    Could anyone throw light on any areas where we are missing out and why no performance improvement was obtained ?
    Also is there any configuration related changes to be done on HANA landscape for better performance.?
    The details regarding both the systems are as below.
    Suite on HANA:
    SAP_BASIS : 740
    SAP_APPL  : 617
    ECC
    SAP_BASIS : 731
    SAP_APPL  : 606
    Also see the below screenshots of the system details.
    HANA:
    ECC:
    Thanks & regards,
    Naseem

    Hi,
    just to fill in on Lars' already exhaustive comments:
    Migrating to HANA gives you lots of options to replace your own functionality (custom ABAP code) wuth HANA artifacts - views or SQLscript procedures. This is where you can really gain on performance. Expecting ABAP code to automatically run faster on HANA may be unrealistic, since it depends on the functionality of the code and how well it "translates" to a HANA environment. The key to really minimize run time is to replace DB calls with specific HANA views or procedures, then call these from your code.
    I wrote a blog on this; you might find it useful as a general introduction:
    A practical example of ABAP on HANA optimization
    When it comes to SAP standard code, like your mentioned FM, it is true that SAP is migrating some of this functionality to HANA-optimized versions, but this doesn't mean everything will be optimized in one go. This particular FM is probably not among those being initially selected for "HANAification", so you basically have to either create your own functionality (which might not be advisable due to the fact that this might violate data integrity) or just be patient.
    But again, the beauty of HANA lies in the brand new options for developers to utilize the new ways of pushing code down to the DB server. Check out the recommendations from Lars and you'll find yourself embarking on a new and exciting journey!
    Also - as a good starting point - check out the HANA developer course on open.sap.com.
    Regards,
    Trond

  • Will there performance improvement over separate tables vs single table with multiple partitions?

    Will there performance improvement over separate tables vs single table with multiple partitions? Is advisable to have separate tables than having a single big table with partitions? Can we expect same performance having single big table with partitions? What is the recommendation approach in HANA?

    Suren,
    first off a friendly reminder: SCN is a public forum and for you as an SAP employee there are multiple internal forums/communities/JAM groups available. You may want to consider this.
    Concerning your question:
    You didn't tell us what you want to do with your table or your set of tables.
    As tables are not only storage units but usually bear semantics - read: if data is stored in one table it means something else than the same data in a different table - partitioned tables cannot simply be substituted by multiple tables.
    Looked at it on a storage technology level, table partitions are practically the same as tables. Each partition has got its own delta store & can be loaded and displaced to/from memory independent from the others.
    Generally speaking there shouldn't be too many performance differences between a partitioned table and multiple tables.
    However, when dealing with partitioned tables, the additional step of determining the partition to work on is always required. If computing the result of the partitioning function takes a major share in your total runtime (which is unlikely) then partitioned tables could have a negative performance impact.
    Having said this: as with all performance related questions, to get a conclusive answer you need to measure the times required for both alternatives.
    - Lars

  • Performance Improvement between GDK and EDK portlets

    Are there any performance improvements to be expected by migrating a portlet from using the GDK library to EDK library? Not looking at what GDK and EDK offers, more on whether we would improve the load time of a portal page if we change a portlet from GDK to EDK.....

    With GDK, my pages inherit from "Plumtree.Remote.Csp.UI.Page" and under the hood, the context is created (SettingsManager) automatically. Apparently, this is not the case anymore with the EDK. Am I correct?
    According to the EDK doc, I need to call "PortletContextFactory.CreatePortletContext(Request,Response)" for such purpose. Still correct?
    -- Yes, correct. In the EDK, no SettingsManager is used, and the functionality is wrapped into IPortletRequest and IPortletResponse.
    The other more important change is that with the GDK, the language of the current thread is automatically set to the language passed by the portal in the "Accept-Language" HTTP header. This is not the case anymore, to my knowledge, and I found out that I need to insert this:
    String sLanguage = HttpContext.Current.Request.UserLanguages[0];System.Threading.Thread.CurrentThread.CurrentCulture=new System.Globalization.CultureInfo(sLanguage);
    Is this correct or did I miss something?
    -- You do not need to use the HttpContext object of .NET. The Plumtree EDK allows you to retrieve the language as follows: The portal language is stored in a User Pref named "strLocale". A remote portlet can read this User Pref.The only point to note is that, as with all User Prefs, you must ensure that the specific prefs are sent to the portlet in the Portlet Web Service registration.
    PortletRequest.GetSettingValue(Plumtree.Remote.Portlet.SettingType.User, "strTimeZone")

  • SQL performance improvement

    Hi All,
    This is a continuation of the below given link (which died unanswered)
    Row to column - SQL performance improvement
    I was working on some logic and came up with an SQL posted below:
    SELECT *
    FROM
      (SELECT NULL no_of_cols,
        NULL brand_name,
        NULL model,
        NULL make,
        NULL assetno,
        NULL RACNO,
        NULL branch,
        LTRIM (SUBSTR (SYS_CONNECT_BY_PATH (b, ' | '), 2), ' | ' ) config_det,
        NULL status,
        NULL code
      FROM
        (SELECT 1 sno,
          mst.prod_id,
          prod_name b,
          DENSE_RANK () OVER (ORDER BY hierarchy_key, mst.prod_id) rn
        FROM appl_common_cat_mst,
          appl_prod_cat_map MAP,
          appl_common_prod_mst mst
        WHERE ID        = cat_id
        AND MAP.prod_id = mst.prod_id
        AND ID          = 3
      WHERE CONNECT_BY_ISLEAF = 1
        START WITH rn         = 1
        CONNECT BY PRIOR rn   = rn - 1
      AND PRIOR sno           = sno
      UNION
      SELECT DISTINCT rn no_of_cols,
        model,
        brand_name,
        make,
        assetno,
        RACNO,
        br_name branch,
        LTRIM (SUBSTR (SYS_CONNECT_BY_PATH ((NVL (inv_descr, '-') ), ' | ' ), 2 ), ' | ' ) config_det,
        sts,
        code
      FROM
        (SELECT model,
          br_name,
          make,
          brand_name,
          assetno,
          RACNO,
          PROD_ID,
          INV#,
          ASSET_GRP,
          LTRIM(SYS_CONNECT_BY_PATH(inv_descr, ', '),', ') inv_descr,
          RN,
          STS,
          CODE ,
          CNT
        FROM
          (SELECT ROW_NUMBER() OVER (PARTITION BY ASSETNO, ASSET_GRP, RN ORDER BY ASSETNO, ASSET_GRP, RN) INV_RN,
            T1.*
          FROM
            (SELECT model,
              MAX (br_name) OVER (PARTITION BY listofprod.assetno ORDER BY listofprod.assetno)br_name,
              make,
              brand_name,
              listofprod.assetno,
              MAX (racno) OVER (PARTITION BY listofprod.assetno ORDER BY listofprod.assetno) racno,
              listofprod.prod_id,
              inv#,
              asset_grp,
              inv_descr,
              DENSE_RANK () OVER (PARTITION BY listofprod.assetno ORDER BY hierarchy_key, listofprod.prod_id) rn,
              STS,
              CODE ,
              COUNT(inv_descr) over (partition BY asset_grp, code,listofprod.assetno order by asset_grp, code,listofprod.assetno) cnt
            FROM
              (SELECT brand_name,
                inv_hdr.model,
                inv_hdr.make,
                asset_hdr.assetno,
                racno,
                inv_hdr.inv#,
                inv_hdr.prod_id,
                DBMS_LOB.SUBSTR (INV_DESCR, 4000, 1 ) INV_DESCR,
                br_name
              FROM APPL_ASSET_HDR_ACTL ASSET_HDR,
                APPL_INVENTORY_HDR_ACTL INV_HDR,
                appl_branch_mst brch_mst
              WHERE inv_hdr.assetno = asset_hdr.assetno
              AND ASSET_HDR.CAT_ID  = 3
              AND branch_code       = br_code
              AND BRANCH_CODE       = 'MU'
              ) CONFIG,
              (SELECT DISTINCT assetno,
                listofprod.prod_id,
                asset_grp,
                sts,
                code,
                hierarchy_key
              FROM
                (SELECT DISTINCT asset_hdr.assetno,
                  asset_hdr.cat_id asset_grp,
                  inv_hdr.prod_id,
                  cmn_mst.VALUE sts,
                  cmn_mst.code code
                FROM appl_asset_hdr_actl asset_hdr,
                  appl_inventory_hdr_actl inv_hdr,
                  appl_common_mst cmn_mst
                WHERE inv_hdr.assetno   = asset_hdr.assetno
                AND asset_hdr.cat_id    = 3
                AND inv_hdr.current_sts = cmn_mst.code
                ) config,
                (SELECT mst.prod_id,
                  hierarchy_key
                FROM appl_common_cat_mst,
                  appl_prod_cat_map MAP,
                  appl_common_prod_mst mst
                WHERE ID        = cat_id
                AND MAP.prod_id = mst.prod_id
                AND ID          = 3
                ) listofprod
              ORDER BY assetno,
                hierarchy_key,
                LISTOFPROD.PROD_ID
              ) LISTOFPROD
            WHERE CONFIG.ASSETNO (+)= LISTOFPROD.ASSETNO
            AND CONFIG.PROD_ID (+)  = LISTOFPROD.PROD_ID
            )T1
          )T2
        WHERE connect_by_isleaf   = 1
        AND CNT                  <> 0
          CONNECT BY prior INV_RN = INV_RN -1
        AND PRIOR assetno         = assetno
        AND prior ASSET_GRP       = ASSET_GRP
        AND PRIOR RN              = RN
          START WITH INV_RN       = 1
        )X
      WHERE connect_by_isleaf = 1
      AND cnt                <> 0
        START WITH RN         = 1
        CONNECT BY PRIOR rn   = rn - 1
      AND PRIOR assetno       = assetno
      AND prior ASSET_GRP     = ASSET_GRP
      ORDER BY 1 ASC nulls FIRST
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    PL/SQL Release 11.2.0.1.0 - Production
    "CORE     11.2.0.1.0     Production"
    TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - ProductionWhich works perfectly on one machine (which is a win XP, c2d, 3gb ram machine), it gives result in less than 2 seconds . The result of
    SELECT * FROM TABLE(DBMS_XPLAN.DISPLAY);is

    Plan hash value: 2219017987
    | Id  | Operation                                        | Name                     | Rows  | Bytes |TempSpc| Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT                                 |                          |   685 |  1505K|       |  2170  (16)| 00:00:27 |
    |   1 |  VIEW                                            |                          |   685 |  1505K|       |  2170  (16)| 00:00:27 |
    |   2 |   SORT UNIQUE                                    |                          |   685 |  1416K|  3656K|  1863 (100)| 00:00:23 |
    |   3 |    UNION-ALL                                     |                          |       |       |       |            |          |
    |*  4 |     FILTER                                       |                          |       |       |       |            |          |
    |*  5 |      CONNECT BY WITH FILTERING                   |                          |       |       |       |            |          |
    |*  6 |       FILTER                                     |                          |       |       |       |            |          |
    |   7 |        COUNT                                     |                          |       |       |       |            |          |
    |   8 |         VIEW                                     |                          |     2 |    86 |       |     5  (20)| 00:00:01 |
    |   9 |          WINDOW SORT                             |                          |     2 |    40 |       |     5  (20)| 00:00:01 |
    |  10 |           NESTED LOOPS                           |                          |     2 |    40 |       |     4   (0)| 00:00:01 |
    |  11 |            NESTED LOOPS                          |                          |     2 |    16 |       |     2   (0)| 00:00:01 |
    |* 12 |             INDEX UNIQUE SCAN                    | SYS_C005404              |     1 |     2 |       |     0   (0)| 00:00:01 |
    |  13 |             TABLE ACCESS BY INDEX ROWID          | APPL_PROD_CAT_MAP        |     2 |    12 |       |     2   (0)| 00:00:01 |
    |* 14 |              INDEX RANGE SCAN                    | PK_PROD_MAP              |     2 |       |       |     1   (0)| 00:00:01 |
    |  15 |            TABLE ACCESS BY INDEX ROWID           | APPL_COMMON_PROD_MST     |     1 |    12 |       |     1   (0)| 00:00:01 |
    |* 16 |             INDEX UNIQUE SCAN                    | SYS_C005409              |     1 |       |       |     0   (0)| 00:00:01 |
    |* 17 |       HASH JOIN                                  |                          |       |       |       |            |          |
    |  18 |        CONNECT BY PUMP                           |                          |       |       |       |            |          |
    |  19 |        COUNT                                     |                          |       |       |       |            |          |
    |  20 |         VIEW                                     |                          |     2 |    86 |       |     5  (20)| 00:00:01 |
    |  21 |          WINDOW SORT                             |                          |     2 |    40 |       |     5  (20)| 00:00:01 |
    |  22 |           NESTED LOOPS                           |                          |     2 |    40 |       |     4   (0)| 00:00:01 |
    |  23 |            NESTED LOOPS                          |                          |     2 |    16 |       |     2   (0)| 00:00:01 |
    |* 24 |             INDEX UNIQUE SCAN                    | SYS_C005404              |     1 |     2 |       |     0   (0)| 00:00:01 |
    |  25 |             TABLE ACCESS BY INDEX ROWID          | APPL_PROD_CAT_MAP        |     2 |    12 |       |     2   (0)| 00:00:01 |
    |* 26 |              INDEX RANGE SCAN                    | PK_PROD_MAP              |     2 |       |       |     1   (0)| 00:00:01 |
    |  27 |            TABLE ACCESS BY INDEX ROWID           | APPL_COMMON_PROD_MST     |     1 |    12 |       |     1   (0)| 00:00:01 |
    |* 28 |             INDEX UNIQUE SCAN                    | SYS_C005409              |     1 |       |       |     0   (0)| 00:00:01 |
    |  29 |       COUNT                                      |                          |       |       |       |            |          |
    |  30 |        VIEW                                      |                          |     2 |    86 |       |     5  (20)| 00:00:01 |
    |  31 |         WINDOW SORT                              |                          |     2 |    40 |       |     5  (20)| 00:00:01 |
    |  32 |          NESTED LOOPS                            |                          |     2 |    40 |       |     4   (0)| 00:00:01 |
    |  33 |           NESTED LOOPS                           |                          |     2 |    16 |       |     2   (0)| 00:00:01 |
    |* 34 |            INDEX UNIQUE SCAN                     | SYS_C005404              |     1 |     2 |       |     0   (0)| 00:00:01 |
    |  35 |            TABLE ACCESS BY INDEX ROWID           | APPL_PROD_CAT_MAP        |     2 |    12 |       |     2   (0)| 00:00:01 |
    |* 36 |             INDEX RANGE SCAN                     | PK_PROD_MAP              |     2 |       |       |     1   (0)| 00:00:01 |
    |  37 |           TABLE ACCESS BY INDEX ROWID            | APPL_COMMON_PROD_MST     |     1 |    12 |       |     1   (0)| 00:00:01 |
    |* 38 |            INDEX UNIQUE SCAN                     | SYS_C005409              |     1 |       |       |     0   (0)| 00:00:01 |
    |* 39 |     FILTER                                       |                          |       |       |       |            |          |
    |* 40 |      CONNECT BY WITH FILTERING                   |                          |       |       |       |            |          |
    |* 41 |       FILTER                                     |                          |       |       |       |            |          |
    |  42 |        COUNT                                     |                          |       |       |       |            |          |
    |  43 |         VIEW                                     |                          |   683 |  1416K|       |  1550   (2)| 00:00:19 |
    |* 44 |          FILTER                                  |                          |       |       |       |            |          |
    |* 45 |           CONNECT BY WITH FILTERING              |                          |       |       |       |            |          |
    |* 46 |            FILTER                                |                          |       |       |       |            |          |
    |  47 |             COUNT                                |                          |       |       |       |            |          |
    |  48 |              VIEW                                |                          |   683 |  1527K|       |  1550   (2)| 00:00:19 |
    |  49 |               WINDOW SORT                        |                          |   683 |  1518K|  3656K|  1550   (2)| 00:00:19 |
    |  50 |                VIEW                              |                          |   683 |  1518K|       |  1221   (2)| 00:00:15 |
    |  51 |                 WINDOW BUFFER                    |                          |   683 |  1536K|       |  1221   (2)| 00:00:15 |
    |  52 |                  WINDOW SORT                     |                          |   683 |  1536K|  3656K|  1221   (2)| 00:00:15 |
    |  53 |                   WINDOW SORT                    |                          |   683 |  1536K|  3656K|  1221   (2)| 00:00:15 |
    |* 54 |                    HASH JOIN OUTER               |                          |   683 |  1536K|       |   228   (4)| 00:00:03 |
    |  55 |                     VIEW                         |                          |   683 | 79228 |       |    99   (6)| 00:00:02 |
    |  56 |                      SORT UNIQUE                 |                          |   683 | 26637 |       |    98   (5)| 00:00:02 |
    |* 57 |                       HASH JOIN                  |                          |   683 | 26637 |       |    97   (4)| 00:00:02 |
    |  58 |                        TABLE ACCESS FULL         | APPL_COMMON_MST          |    17 |   289 |       |     3   (0)| 00:00:01 |
    |* 59 |                        HASH JOIN                 |                          |   683 | 15026 |       |    94   (4)| 00:00:02 |
    |  60 |                         NESTED LOOPS             |                          |   228 |  3420 |       |     9  (12)| 00:00:01 |
    |* 61 |                          HASH JOIN               |                          |   228 |  2964 |       |     9  (12)| 00:00:01 |
    |  62 |                           NESTED LOOPS           |                          |   102 |   714 |       |     5   (0)| 00:00:01 |
    |* 63 |                            INDEX UNIQUE SCAN     | SYS_C005404              |     1 |     2 |       |     0   (0)| 00:00:01 |
    |* 64 |                            INDEX FAST FULL SCAN  | INDX_AST_HDR_ACTL_CAT_ID |   102 |   510 |       |     5   (0)| 00:00:01 |
    |  65 |                           TABLE ACCESS FULL      | APPL_PROD_CAT_MAP        |   150 |   900 |       |     3   (0)| 00:00:01 |
    |* 66 |                          INDEX UNIQUE SCAN       | SYS_C005409              |     1 |     2 |       |     0   (0)| 00:00:01 |
    |  67 |                         TABLE ACCESS FULL        | APPL_INVENTORY_HDR_ACTL  | 17094 |   116K|       |    84   (2)| 00:00:02 |
    |  68 |                     VIEW                         |                          |   145 |   309K|       |   128   (3)| 00:00:02 |
    |  69 |                      NESTED LOOPS                |                          |   145 | 18560 |       |   128   (3)| 00:00:02 |
    |* 70 |                       HASH JOIN                  |                          |   145 | 17255 |       |   127   (3)| 00:00:02 |
    |* 71 |                        TABLE ACCESS FULL         | APPL_ASSET_HDR_ACTL      |   102 |  2346 |       |    42   (3)| 00:00:01 |
    |* 72 |                        TABLE ACCESS FULL         | APPL_INVENTORY_HDR_ACTL  |  5698 |   534K|       |    85   (3)| 00:00:02 |
    |  73 |                       TABLE ACCESS BY INDEX ROWID| APPL_BRANCH_MST          |     1 |     9 |       |     1   (0)| 00:00:01 |
    |* 74 |                        INDEX UNIQUE SCAN         | PK_BRHCD                 |     1 |       |       |     0   (0)| 00:00:01 |
    |* 75 |            HASH JOIN                             |                          |       |       |       |            |          |
    |  76 |             CONNECT BY PUMP                      |                          |       |       |       |            |          |
    |  77 |             COUNT                                |                          |       |       |       |            |          |
    |  78 |              VIEW                                |                          |   683 |  1527K|       |  1550   (2)| 00:00:19 |
    |  79 |               WINDOW SORT                        |                          |   683 |  1518K|  3656K|  1550   (2)| 00:00:19 |
    |  80 |                VIEW                              |                          |   683 |  1518K|       |  1221   (2)| 00:00:15 |
    |  81 |                 WINDOW BUFFER                    |                          |   683 |  1536K|       |  1221   (2)| 00:00:15 |
    |  82 |                  WINDOW SORT                     |                          |   683 |  1536K|  3656K|  1221   (2)| 00:00:15 |
    |  83 |                   WINDOW SORT                    |                          |   683 |  1536K|  3656K|  1221   (2)| 00:00:15 |
    |* 84 |                    HASH JOIN OUTER               |                          |   683 |  1536K|       |   228   (4)| 00:00:03 |
    |  85 |                     VIEW                         |                          |   683 | 79228 |       |    99   (6)| 00:00:02 |
    |  86 |                      SORT UNIQUE                 |                          |   683 | 26637 |       |    98   (5)| 00:00:02 |
    |* 87 |                       HASH JOIN                  |                          |   683 | 26637 |       |    97   (4)| 00:00:02 |
    |  88 |                        TABLE ACCESS FULL         | APPL_COMMON_MST          |    17 |   289 |       |     3   (0)| 00:00:01 |
    |* 89 |                        HASH JOIN                 |                          |   683 | 15026 |       |    94   (4)| 00:00:02 |
    |  90 |                         NESTED LOOPS             |                          |   228 |  3420 |       |     9  (12)| 00:00:01 |
    |* 91 |                          HASH JOIN               |                          |   228 |  2964 |       |     9  (12)| 00:00:01 |
    |  92 |                           NESTED LOOPS           |                          |   102 |   714 |       |     5   (0)| 00:00:01 |
    |* 93 |                            INDEX UNIQUE SCAN     | SYS_C005404              |     1 |     2 |       |     0   (0)| 00:00:01 |
    |* 94 |                            INDEX FAST FULL SCAN  | INDX_AST_HDR_ACTL_CAT_ID |   102 |   510 |       |     5   (0)| 00:00:01 |
    |  95 |                           TABLE ACCESS FULL      | APPL_PROD_CAT_MAP        |   150 |   900 |       |     3   (0)| 00:00:01 |
    |* 96 |                          INDEX UNIQUE SCAN       | SYS_C005409              |     1 |     2 |       |     0   (0)| 00:00:01 |
    |  97 |                         TABLE ACCESS FULL        | APPL_INVENTORY_HDR_ACTL  | 17094 |   116K|       |    84   (2)| 00:00:02 |
    |  98 |                     VIEW                         |                          |   145 |   309K|       |   128   (3)| 00:00:02 |
    |  99 |                      NESTED LOOPS                |                          |   145 | 18560 |       |   128   (3)| 00:00:02 |
    |*100 |                       HASH JOIN                  |                          |   145 | 17255 |       |   127   (3)| 00:00:02 |
    |*101 |                        TABLE ACCESS FULL         | APPL_ASSET_HDR_ACTL      |   102 |  2346 |       |    42   (3)| 00:00:01 |
    |*102 |                        TABLE ACCESS FULL         | APPL_INVENTORY_HDR_ACTL  |  5698 |   534K|       |    85   (3)| 00:00:02 |
    | 103 |                       TABLE ACCESS BY INDEX ROWID| APPL_BRANCH_MST          |     1 |     9 |       |     1   (0)| 00:00:01 |
    |*104 |                        INDEX UNIQUE SCAN         | PK_BRHCD                 |     1 |       |       |     0   (0)| 00:00:01 |
    | 105 |            COUNT                                 |                          |       |       |       |            |          |
    | 106 |             VIEW                                 |                          |   683 |  1527K|       |  1550   (2)| 00:00:19 |
    | 107 |              WINDOW SORT                         |                          |   683 |  1518K|  3656K|  1550   (2)| 00:00:19 |
    | 108 |               VIEW                               |                          |   683 |  1518K|       |  1221   (2)| 00:00:15 |
    | 109 |                WINDOW BUFFER                     |                          |   683 |  1536K|       |  1221   (2)| 00:00:15 |
    | 110 |                 WINDOW SORT                      |                          |   683 |  1536K|  3656K|  1221   (2)| 00:00:15 |
    | 111 |                  WINDOW SORT                     |                          |   683 |  1536K|  3656K|  1221   (2)| 00:00:15 |
    |*112 |                   HASH JOIN OUTER                |                          |   683 |  1536K|       |   228   (4)| 00:00:03 |
    | 113 |                    VIEW                          |                          |   683 | 79228 |       |    99   (6)| 00:00:02 |
    | 114 |                     SORT UNIQUE                  |                          |   683 | 26637 |       |    98   (5)| 00:00:02 |
    |*115 |                      HASH JOIN                   |                          |   683 | 26637 |       |    97   (4)| 00:00:02 |
    | 116 |                       TABLE ACCESS FULL          | APPL_COMMON_MST          |    17 |   289 |       |     3   (0)| 00:00:01 |
    |*117 |                       HASH JOIN                  |                          |   683 | 15026 |       |    94   (4)| 00:00:02 |
    | 118 |                        NESTED LOOPS              |                          |   228 |  3420 |       |     9  (12)| 00:00:01 |
    |*119 |                         HASH JOIN                |                          |   228 |  2964 |       |     9  (12)| 00:00:01 |
    | 120 |                          NESTED LOOPS            |                          |   102 |   714 |       |     5   (0)| 00:00:01 |
    |*121 |                           INDEX UNIQUE SCAN      | SYS_C005404              |     1 |     2 |       |     0   (0)| 00:00:01 |
    |*122 |                           INDEX FAST FULL SCAN   | INDX_AST_HDR_ACTL_CAT_ID |   102 |   510 |       |     5   (0)| 00:00:01 |
    | 123 |                          TABLE ACCESS FULL       | APPL_PROD_CAT_MAP        |   150 |   900 |       |     3   (0)| 00:00:01 |
    |*124 |                         INDEX UNIQUE SCAN        | SYS_C005409              |     1 |     2 |       |     0   (0)| 00:00:01 |
    | 125 |                        TABLE ACCESS FULL         | APPL_INVENTORY_HDR_ACTL  | 17094 |   116K|       |    84   (2)| 00:00:02 |
    | 126 |                    VIEW                          |                          |   145 |   309K|       |   128   (3)| 00:00:02 |
    | 127 |                     NESTED LOOPS                 |                          |   145 | 18560 |       |   128   (3)| 00:00:02 |
    |*128 |                      HASH JOIN                   |                          |   145 | 17255 |       |   127   (3)| 00:00:02 |
    |*129 |                       TABLE ACCESS FULL          | APPL_ASSET_HDR_ACTL      |   102 |  2346 |       |    42   (3)| 00:00:01 |
    |*130 |                       TABLE ACCESS FULL          | APPL_INVENTORY_HDR_ACTL  |  5698 |   534K|       |    85   (3)| 00:00:02 |
    | 131 |                      TABLE ACCESS BY INDEX ROWID | APPL_BRANCH_MST          |     1 |     9 |       |     1   (0)| 00:00:01 |
    |*132 |                       INDEX UNIQUE SCAN          | PK_BRHCD                 |     1 |       |       |     0   (0)| 00:00:01 |
    |*133 |       HASH JOIN                                  |                          |       |       |       |            |          |
    | 134 |        CONNECT BY PUMP                           |                          |       |       |       |            |          |
    | 135 |        COUNT                                     |                          |       |       |       |            |          |
    | 136 |         VIEW                                     |                          |   683 |  1416K|       |  1550   (2)| 00:00:19 |
    |*137 |          FILTER                                  |                          |       |       |       |            |          |
    |*138 |           CONNECT BY WITH FILTERING              |                          |       |       |       |            |          |
    |*139 |            FILTER                                |                          |       |       |       |            |          |
    | 140 |             COUNT                                |                          |       |       |       |            |          |
    | 141 |              VIEW                                |                          |   683 |  1527K|       |  1550   (2)| 00:00:19 |
    | 142 |               WINDOW SORT                        |                          |   683 |  1518K|  3656K|  1550   (2)| 00:00:19 |
    | 143 |                VIEW                              |                          |   683 |  1518K|       |  1221   (2)| 00:00:15 |
    | 144 |                 WINDOW BUFFER                    |                          |   683 |  1536K|       |  1221   (2)| 00:00:15 |
    | 145 |                  WINDOW SORT                     |                          |   683 |  1536K|  3656K|  1221   (2)| 00:00:15 |
    | 146 |                   WINDOW SORT                    |                          |   683 |  1536K|  3656K|  1221   (2)| 00:00:15 |
    |*147 |                    HASH JOIN OUTER               |                          |   683 |  1536K|       |   228   (4)| 00:00:03 |
    | 148 |                     VIEW                         |                          |   683 | 79228 |       |    99   (6)| 00:00:02 |
    | 149 |                      SORT UNIQUE                 |                          |   683 | 26637 |       |    98   (5)| 00:00:02 |
    |*150 |                       HASH JOIN                  |                          |   683 | 26637 |       |    97   (4)| 00:00:02 |
    | 151 |                        TABLE ACCESS FULL         | APPL_COMMON_MST          |    17 |   289 |       |     3   (0)| 00:00:01 |
    |*152 |                        HASH JOIN                 |                          |   683 | 15026 |       |    94   (4)| 00:00:02 |
    | 153 |                         NESTED LOOPS             |                          |   228 |  3420 |       |     9  (12)| 00:00:01 |
    |*154 |                          HASH JOIN               |                          |   228 |  2964 |       |     9  (12)| 00:00:01 |
    | 155 |                           NESTED LOOPS           |                          |   102 |   714 |       |     5   (0)| 00:00:01 |
    |*156 |                            INDEX UNIQUE SCAN     | SYS_C005404              |     1 |     2 |       |     0   (0)| 00:00:01 |
    |*157 |                            INDEX FAST FULL SCAN  | INDX_AST_HDR_ACTL_CAT_ID |   102 |   510 |       |     5   (0)| 00:00:01 |
    | 158 |                           TABLE ACCESS FULL      | APPL_PROD_CAT_MAP        |   150 |   900 |       |     3   (0)| 00:00:01 |
    |*159 |                          INDEX UNIQUE SCAN       | SYS_C005409              |     1 |     2 |       |     0   (0)| 00:00:01 |
    | 160 |                         TABLE ACCESS FULL        | APPL_INVENTORY_HDR_ACTL  | 17094 |   116K|       |    84   (2)| 00:00:02 |
    | 161 |                     VIEW                         |                          |   145 |   309K|       |   128   (3)| 00:00:02 |
    | 162 |                      NESTED LOOPS                |                          |   145 | 18560 |       |   128   (3)| 00:00:02 |
    |*163 |                       HASH JOIN                  |                          |   145 | 17255 |       |   127   (3)| 00:00:02 |
    |*164 |                        TABLE ACCESS FULL         | APPL_ASSET_HDR_ACTL      |   102 |  2346 |       |    42   (3)| 00:00:01 |
    |*165 |                        TABLE ACCESS FULL         | APPL_INVENTORY_HDR_ACTL  |  5698 |   534K|       |    85   (3)| 00:00:02 |
    | 166 |                       TABLE ACCESS BY INDEX ROWID| APPL_BRANCH_MST          |     1 |     9 |       |     1   (0)| 00:00:01 |
    |*167 |                        INDEX UNIQUE SCAN         | PK_BRHCD                 |     1 |       |       |     0   (0)| 00:00:01 |
    |*168 |            HASH JOIN                             |                          |       |       |       |            |          |
    | 169 |             CONNECT BY PUMP                      |                          |       |       |       |            |          |
    | 170 |             COUNT                                |                          |       |       |       |            |          |
    | 171 |              VIEW                                |                          |   683 |  1527K|       |  1550   (2)| 00:00:19 |
    | 172 |               WINDOW SORT                        |                          |   683 |  1518K|  3656K|  1550   (2)| 00:00:19 |
    | 173 |                VIEW                              |                          |   683 |  1518K|       |  1221   (2)| 00:00:15 |
    | 174 |                 WINDOW BUFFER                    |                          |   683 |  1536K|       |  1221   (2)| 00:00:15 |
    | 175 |                  WINDOW SORT                     |                          |   683 |  1536K|  3656K|  1221   (2)| 00:00:15 |
    | 176 |                   WINDOW SORT                    |                          |   683 |  1536K|  3656K|  1221   (2)| 00:00:15 |
    |*177 |                    HASH JOIN OUTER               |                          |   683 |  1536K|       |   228   (4)| 00:00:03 |
    | 178 |                     VIEW                         |                          |   683 | 79228 |       |    99   (6)| 00:00:02 |
    | 179 |                      SORT UNIQUE                 |                          |   683 | 26637 |       |    98   (5)| 00:00:02 |
    |*180 |                       HASH JOIN                  |                          |   683 | 26637 |       |    97   (4)| 00:00:02 |
    | 181 |                        TABLE ACCESS FULL         | APPL_COMMON_MST          |    17 |   289 |       |     3   (0)| 00:00:01 |
    |*182 |                        HASH JOIN                 |                          |   683 | 15026 |       |    94   (4)| 00:00:02 |
    | 183 |                         NESTED LOOPS             |                          |   228 |  3420 |       |     9  (12)| 00:00:01 |
    |*184 |                          HASH JOIN               |                          |   228 |  2964 |       |     9  (12)| 00:00:01 |
    | 185 |                           NESTED LOOPS           |                          |   102 |   714 |       |     5   (0)| 00:00:01 |
    |*186 |                            INDEX UNIQUE SCAN     | SYS_C005404              |     1 |     2 |       |     0   (0)| 00:00:01 |
    |*187 |                            INDEX FAST FULL SCAN  | INDX_AST_HDR_ACTL_CAT_ID |   102 |   510 |       |     5   (0)| 00:00:01 |
    | 188 |                           TABLE ACCESS FULL      | APPL_PROD_CAT_MAP        |   150 |   900 |       |     3   (0)| 00:00:01 |
    |*189 |                          INDEX UNIQUE SCAN       | SYS_C005409              |     1 |     2 |       |     0   (0)| 00:00:01 |
    | 190 |                         TABLE ACCESS FULL        | APPL_INVENTORY_HDR_ACTL  | 17094 |   116K|       |    84   (2)| 00:00:02 |
    | 191 |                     VIEW                         |                          |   145 |   309K|       |   128   (3)| 00:00:02 |
    | 192 |                      NESTED LOOPS                |                          |   145 | 18560 |       |   128   (3)| 00:00:02 |
    |*193 |                       HASH JOIN                  |                          |   145 | 17255 |       |   127   (3)| 00:00:02 |
    |*194 |                        TABLE ACCESS FULL         | APPL_ASSET_HDR_ACTL      |   102 |  2346 |       |    42   (3)| 00:00:01 |
    |*195 |                        TABLE ACCESS FULL         | APPL_INVENTORY_HDR_ACTL  |  5698 |   534K|       |    85   (3)| 00:00:02 |
    | 196 |                       TABLE ACCESS BY INDEX ROWID| APPL_BRANCH_MST          |     1 |     9 |       |     1   (0)| 00:00:01 |
    |*197 |                        INDEX UNIQUE SCAN         | PK_BRHCD                 |     1 |       |       |     0   (0)| 00:00:01 |
    | 198 |            COUNT                                 |                          |       |       |       |            |          |
    | 199 |             VIEW                                 |                          |   683 |  1527K|       |  1550   (2)| 00:00:19 |
    | 200 |              WINDOW SORT                         |                          |   683 |  1518K|  3656K|  1550   (2)| 00:00:19 |
    | 201 |               VIEW                               |                          |   683 |  1518K|       |  1221   (2)| 00:00:15 |
    | 202 |                WINDOW BUFFER                     |                          |   683 |  1536K|       |  1221   (2)| 00:00:15 |
    | 203 |                 WINDOW SORT                      |                          |   683 |  1536K|  3656K|  1221   (2)| 00:00:15 |
    | 204 |                  WINDOW SORT                     |                          |   683 |  1536K|  3656K|  1221   (2)| 00:00:15 |
    |*205 |                   HASH JOIN OUTER                |                          |   683 |  1536K|       |   228   (4)| 00:00:03 |
    | 206 |                    VIEW                          |                          |   683 | 79228 |       |    99   (6)| 00:00:02 |
    | 207 |                     SORT UNIQUE                  |                          |   683 | 26637 |       |    98   (5)| 00:00:02 |
    |*208 |                      HASH JOIN                   |                          |   683 | 26637 |       |    97   (4)| 00:00:02 |
    | 209 |                       TABLE ACCESS FULL          | APPL_COMMON_MST          |    17 |   289 |       |     3   (0)| 00:00:01 |
    |*210 |                       HASH JOIN                  |                          |   683 | 15026 |       |    94   (4)| 00:00:02 |
    | 211 |                        NESTED LOOPS              |                          |   228 |  3420 |       |     9  (12)| 00:00:01 |
    |*212 |                         HASH JOIN                |                          |   228 |  2964 |       |     9  (12)| 00:00:01 |
    | 213 |                          NESTED LOOPS            |                          |   102 |   714 |       |     5   (0)| 00:00:01 |
    |*214 |                           INDEX UNIQUE SCAN      | SYS_C005404              |     1 |     2 |       |     0   (0)| 00:00:01 |
    |*215 |                           INDEX FAST FULL SCAN   | INDX_AST_HDR_ACTL_CAT_ID |   102 |   510 |       |     5   (0)| 00:00:01 |
    | 216 |                          TABLE ACCESS FULL       | APPL_PROD_CAT_MAP        |   150 |   900 |       |     3   (0)| 00:00:01 |

  • Tabular Model Performance Improvements

    Hi !
    We have a bulitv tabular model inline which has a fact table and 2 dimension tables .The performance of SSRS report is very slow and we have bottle neck in deciding SSRS as reporting tool.
    Can you help us on performance improvements with Tabular Inline
    Regards,

    Hi Bhadri,
    As Sorna said, it hard to give you the detail tips to improve the tabular model performance according the limited information. Here are some useful link about performance Tuning of Tabular Models in SQL Server 2012 Analysis Services, please refer to the
    link below.
    http://msdn.microsoft.com/en-us/library/dn393915.aspx
    If this is not what you want, please elaborate the detail information, so that we can make further analysis.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Filter Function in Column Formula is not working properly

    Hi,
    I am using Filter Function in Column formula tab in Answers to calculate the Total sum from the start of the Fiscal month to the Month selected from the Prompt.
    My requirement is I have total sales column. Now I need to calculate TYYTD kind of thing for which I cant use the Time sereis due to my report constraint.
    Instead of that I am using this Filter function on TYYTD column where i am giving the filter as start of the Fiscal month to the month selected from the Prompt.
    For example if I select May month from the Prompt then this TYYTD column should give me SUM(Total Sales) between Feb and May for which I am using the Filter Function. But it giving me only May sales whcih is same as Total Sales column.
    Can anyone throw some light on this as this is very important for us or any alternate solution other than Time sereis measures.
    Did anyone got this kind of issue with Filter Function?
    Regards,
    Azad

    Ok...here's the steps to fix this as efficiently as possible.  I have a whole bunch of mailboxes under "On My Mac" and they have a bunch of mailboxes nested in them.  I get my messages into Apple Mail via IMAP.  (I don't know if this matters.)  The steps below assume you have a similar setup.
    1.  Hold the Option key down and click the dropdown arrow next to each mailbox that has one.  This will cause all nested mailboxes below it to appear.
    2.  Go to the top of the list of mailboxes under "On My Mac" and highlight the first mailbox.  Then hold the Shift key down and highlight the last mailbox in the list.  This will cause all of the mailboxes and nested mailboxes to be highlighted.
    3.  From the menu, select "Mailbox --> Rebuild" and the rebuild process will start.
    4.  Watch the top of the mail screen to see the message count change as the mailboxes are being rebuilt.  Wait until the activity stops before doing the next step.
    5.  As the mailboxes were rebuilt, many messages were reset as "Unread" even though every message was previously "Read."  Make sure the mailboxes you want to affect are still highlighted.  Right-click and select "Mark All Messages Read."
    That fixed the problem for me.

  • Filter Function problems on ALV report. [Resolved]

    Hi,
    I developed an ALV report by using function as below:
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
             EXPORTING
                  I_CALLBACK_PROGRAM = G_REPID
    *            I_CALLBACK_PF_STATUS_SET = status_set
    *            I_CALLBACK_USER_COMMAND  = USER_COMMAND
                  I_STRUCTURE_NAME = 'T_BSIK'
                  IS_LAYOUT        = GS_LAYOUT
                  IT_FIELDCAT      = GT_FIELDCAT[]
             TABLES
                  T_OUTTAB    = TAB_BSIK.
    And this ALV custom report is referenced from standard function FBL5N.
    After i completed this report, i made an comparision of FBL5N and my custom report.
    When I apply the filter function, for example, on the document type, I cannot input 2 characters in the document type field under the filter function. The field length is only 1 character. Similar case results on the field document date.
    While the standard function FBL5N works very nice.
    What should i do to make the filter function of my own ALV report as the same as the standard function FBL5N do?
    Thanks in advance.
    Lala
    Message was edited by:
            Hoo lala

    Oh, i found where the problem is...
    add below 2 statements, then the question is resolved.
      LS_FIELDCAT-ref_fieldname = ****
      LS_FIELDCAT-ref_tabname = ***
    FORM FIELDCAT_INIT tables RT_FIELDCAT.
    CLEAR LS_FIELDCAT.
      LS_FIELDCAT-COL_POS   =  3.
      LS_FIELDCAT-FIELDNAME = 'BLART'.
      LS_FIELDCAT-TABNAME   = 'TAB_BSIK'.
      LS_FIELDCAT-SELTEXT_L = 'Document Type'.
      LS_FIELDCAT-ref_fieldname = 'BLART'.
      LS_FIELDCAT-ref_tabname = 'BSIK'.
      APPEND LS_FIELDCAT TO  RT_FIELDCAT.
    endform.
    Fine now.
    Lala

  • How can i extend the filter function to also include an option to select which column to filter on?

    Hi.
    I have built an spry test-page (testing it on my localhost  so i cannot give you direct access to it) here i have an XML file that i show in an dynamic/ repeat table with 5 columns.
    I hvae included an spry filter function to easy filter out records, but the code only allows me to filter on one of the columns.
    I would like to add an extra "select-menu" to define which column the filter should be active for, how can i do that
    Here is the filter code and also the html code for the select-menu and the box to type in what to filter.
    The bold parts is the important parts, i would like the options values from the select menu to be inserted in the filterData function to be able to define which column to do the filtering on.
    var ds1 = new Spry.Data.XMLDataSet("report3.xml", "orders/order", {sortOnLoad: "@id", sortOrderOnLoad: "descending"});
    ds1.setColumnType("date", "date");
    ds1.setColumnType("BUTIKNR", "number");
    ds1.setColumnType("EXTRAFRAKT", "number");
    ds1.setColumnType("job/@idx", "number");
    var jobs = new Spry.Data.NestedXMLDataSet(ds1, "job");
    function FilterData()
        var tf = document.getElementById("filterTF");
        var menu = document.getElementById("searchIdent");
        if (!tf.value)
            // If the text field is empty, remove any filter
            // that is set on the data set.
            ds1.filter(null);
            return;
        // Set a filter on the data set that matches any row
        // that begins with the string in the text field.
        var regExpStr = tf.value;
        if (!document.getElementById("containsCB").checked)
            regExpStr = "^" + regExpStr;
        var regExp = new RegExp(regExpStr, "i");
        var filterFunc = function(ds, row, rowNumber)
            var str = row["@id"];
            if (str && str.search(regExp) != -1)
                return row;
            return null;
        ds1.filter(filterFunc);
    function StartFilterTimer()
        if (StartFilterTimer.timerID)
            clearTimeout(StartFilterTimer.timerID);
        StartFilterTimer.timerID = setTimeout(function() { StartFilterTimer.timerID = null; FilterData(); }, 100);
    html:
                <select name="searchIdent" size="1" id="searchIdent">
                    <option value="@id" selected="selected">ID</option>
                    <option value="date">DATUM</option>
                    <option value="time">TID</option>
                    <option value="BUTIKNR">BUTIK</option>
                    <option value="REF">REFERENS</option>
                  </select>
              <input type="text" id="filterTF" onkeyup="StartFilterTimer();" />
    Contains:
      <input type="checkbox" id="containsCB" /></td>
    Thanks in advance.
    //Rickard H

    Now it works, i had to do it like this:
        var filterFunc = function(ds, row, rowNumber)
            var str = row["@id"];
            if (str && str.search(regExp) != -1)
                return row;
            var str1 = row["date"];
            if (str1 && str1.search(regExp) != -1)
                return row;
            var str2 = row["time"];
            if (str2 && str2.search(regExp) != -1)
                return row;
            var str3 = row["BUTIKNR"];
            if (str3 && str3.search(regExp) != -1)
                return row;
            var str4 = row["REF"];
            if (str4 && str4.search(regExp) != -1)
                return row;
            return null;
    I also had to remove the line "ds1.setColumnType("BUTIKNR", "number");" from the code, otherwise it would not search at all (only searches string types?).

  • Using FILTER function in oracle answers

    Gurus,
    I have a question related to using Filter function in oracle answers.
    When trying to insert a Filter (expr) Using (expr) clause in the formula area of a fact table field, It errored out with msg saying about using a wrong measure.
    I know this can be done with a case expression but I tried filter clause since this is available in oracle answers.
    Please help me figuring out this scenario.
    Thanks.

    David / Raghu - Thanks for u'r replies and apologizes for not posting question with proper material.
    Am posting my code and the error message from the screen.
    Code :
    IFNULL(FILTER("Fact - MBS Loan Transactions"."OUTSTANDING PRINCIPAL" USING "Dim - MBS Loan"."LOAN TYPE HPD/HDC/BNK" = 'HDC'),0)
    Error :
    nQSError: 10058] A general error has occurred. [nQSError: 22032] Function FILTER requires at least one measure attribute in its first argument. (HY000)
    SQL Issued: SELECT "Dim - MBS Loan"."LOAN AMOUNT", "Dim - MBS Loan"."LOAN TYPE HPD/HDC/BNK", "Dim - MBS Loan"."LOAN TYPE SEN/SUB", "Dim - MBS Project"."PROJECT NAME", "Dim - MBS Project"."PROJECT NUMBER", "Fact - MBS Loan Transactions"."AR BALANCE INTEREST", "Fact - MBS Loan Transactions"."GL BALANCE INTEREST", IFNULL(FILTER("Fact - MBS Loan Transactions"."OUTSTANDING PRINCIPAL" USING "Dim - MBS Loan"."LOAN TYPE HPD/HDC/BNK" = 'HDC'),0) FROM "Financials - MBS"
    OK (Ignore Error)
    Please continue answering my queries. Since am a newbie your answers won't be just a reply but it's actually learning for me.
    Thanks.

  • About the filter function in OBIEE 11g

    Hi, all.
    when i use the filter function in OBIEE 11g, it turn out a wrong result.
    The operation steps and detail are described as follow:
    1. In the Column Formula pane, I typed the Formula of the column 'count of customer' as:
    FILTER(count(distinct("customer info dimesion"."customerID")) USING ("TradeType Dimesion"."TradeType" = '001'))
    2. But the phisical SQL about this column in the NQquery file is that: "count(distinct(T11520.CUSTOMERID)) as c5, "
    which means that, the filter wasn't applied, right?
    If so, what shall I do in this situation, in other words , how can i make a Condition COUNT?
    Any Suggestion is appreciated!
    Thank you in advance~~O(∩_∩)O~

    Hi katherine,
    FILTER(count(distinct("customer info dimesion"."customerID")) USING ("TradeType Dimesion"."TradeType" = '001'))I think your formula there is mistake like many braces...instead type this in your f(x)
    =>Filter(count(distinct customer_id) USING trade type='001')
    This filter function is same like a case statement,if you filter still gives error write a case statement
    CASE WHEN TradeType Dimesion.TradeType='001' THEN count(distinct customer info dimesion.customerID) ELSE 0 END
    Will it be helpful?,follow this etiquette http://forums.oracle.com/forums/ann.jspa?annID=939
    By,
    KK

  • There is no filter function in numbers for ipad,its very discouraging,as a ipad fan,even nokia lumia providing filter in there low cost mobile

    there is no filter function in numbers for ipad,its very discouraging,as a ipad fan,even nokia lumia providing filter function in excel in there low cost mobile.
    APPLE KINDLY PROVIDE THIS FEATURE AS UPDATE SOON,COZ I WORK ON EXCEL N NUMBERS IN MY IPAD IS DEAD WITH OUT FILTER FUNCTION,I CAN NOT TRAVEL WITH MY IPAD DUE TO THIS REASON,AS I HAVE TO BE IN FIELD WITH SALES FORCE SO I BOUGHT IPAD.

    Probably you know that the new version of Numbers for iOS uses the filters created in the Numbers for Mac version.
    It's not the best solution but it helps (of course, if you have a Mac!)

  • Filter function causing 0 items in combo box

    HI there, I have combobox with the dataProvider set up like below
        <mx:ComboBox rowCount="10" id="selectUser" 
                        dataProvider="{VO.getInstance().clientsResultForAddTrade}" width="258"
                        x="28" y="10" >        
                    </mx:ComboBox>
    in the VO class I have some code that calls the filter function (when clientsResultForAddTrade is refreshed in the clientsDataChangeHandler) when the clientsResultForAddTrade data changes.
          private function clientsDataChangeHandler( event:PropertyChangeEvent ):void{
               clientsResultForAddTrade.refresh();
            public function VO(caller:Function=null)
                if (caller != VO.getInstance)
                    throw new Error("Singleton is a singleton class, use getInstance() instead");
                if (VO.instance != null)
                    throw new Error("Only one Singleton instance should be instantiated");
                //put instantiation code here
                clientsResultForAddTrade.filterFunction = clientAuthorisedFilterFunction;
                 activityWatcher = ChangeWatcher.watch( this, "clientsResultForAddTrade", clientsDataChangeHandler);
                private function clientAuthorisedFilterFunction(item:Object):Boolean
                    var b:Boolean =  item.status == 'Authorised';
                    return item.status == 'Authorised';
    However there are 0 items in the selectUser combobox after the filter function is called, I have checked that it returns true when item.status == 'Authorised'
    Please advise, 10 points available

    Could it be a problem with the way I assign the data in the first place?
    private function handleGetClients(event:ResultEvent):void
                    VO.getInstance().clientsResult=event.result as ArrayCollection;
                    //the following has a filter function in the model that automaticly refreshes
                    VO.getInstance().clientsResultForAddTrade.source = (event.result as ArrayCollection).source;

Maybe you are looking for

  • Multiple failure during exporting and recording

    Hello everyone, I'm currently helping a friend to create a slideshow to be used on their wedding banquet that talks about their childhood and love story. It's a combination of photographs, with 1 short video clip. As well as 1 personally remixed soun

  • How to track the inserting process

    Hi experts, Currently, I have a table that is feed by my customer. When the feeding process completes, then I start another process that using those data. However, sometimes the feed process took a bit longer than norm, then I had an issue when I use

  • Sms not showing even after ios8.1 update

    I been having problem as sms keep disappearing. Always need to restart iphone 6  to show back my sms. I cant reset phone as new as alot of my sms are very important. Please resolve this issue asap.

  • Macbook pro late 2011 is on Mac OS X v10.7 Lion and it is using lot of RAM

    Macbook pro late 2011 is on Mac OS X v10.7 Lion and it is using lot of RAM...when I turn on after 2minutes it freezes and do not repond and system prefrences also not working...plz help me....I don,t have mac os disc I have tried safe mode boot, NVRA

  • Udev rules config and multiple NICs

    So I have four NICs and I want them all set up on individual subnets with static IPs. eth0 is connected to my internet router. So, per the Arch wiki, I tried configuring /etc/udev/rules.d/10-network.rules like so: SUBSYSTEM=="net", ATTR{address}=="08