How to validate if a column have NULL value, dont show a row with MDX

Hello,
I have this situation, I have a Result from MDX that return rows with values NULL on columns, I tried with NON EMPTY and NONEMPTY but the result is the same. That I want to do is validate if a column have a Null value discard the row, but I dont know how
to implement it, could somebody help me?, please.
Thanks a lot.
Sukey Nakasima
Sukey Nakasima

Hello,
I found the answer in this link https://social.technet.microsoft.com/Forums/sqlserver/en-US/f9c02ce3-96b2-4cd6-921f-3679eb22d790/dont-want-to-cross-join-with-null-values-in-mdx?forum=sqlanalysisservices
Thanks a lot.
Sukey Nakasima
Sukey Nakasima

Similar Messages

  • How to determine how many times result set columns have same value

    Hi -
    I'm doing a report which will be used for payment trend analyses.
    My initial result set looks like this:
    HOUSEHOLD_ID     JAN_PMT     FEB_PMT     MAR_PMT     APR_PMT     MAY_PMT     JUN_PMT     JUL_PMT     AUG_PMT     SEP_PMT     OCT_PMT     NOV_PMT     DEC_PMT
    90026845409     1     1     1     1     2     1     1     1     1     0     1     0(many rows, of course; result set pivoted)
    I need to determine the households that have a > 0 value in three or more consecutive months.
    I'm hoping someone will have some suggestions because the only solutions I'm coming up with right now would be a coding nightmare (lots of "OR's"), and I'm assuming (hoping) there's a better solution out there.
    Thanks!
    Christine

    Hi Frank,
    I'm not sure I'm understanding how I would use those analytic functions. Here is my select statement:
    SELECT HOUSEHOLD_ID,
           SUM(CASE WHEN ( TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'MM'))     =  1 AND TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) > 19 ) OR
                         ( TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'MM')) - 1 =  1 AND TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) < 6  )
                    THEN 1 ELSE 0 END) AS JAN_PMT,
           SUM(CASE WHEN ( TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'MM'))     =  2 AND TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) > 19 ) OR
                         ( TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'MM')) - 1 =  2 AND TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) < 6  )
                    THEN 1 ELSE 0 END) AS FEB_PMT,
           SUM(CASE WHEN ( TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'MM'))     =  3 AND TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) > 19 ) OR
                         ( TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'MM')) - 1 =  3 AND TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) < 6  )
                    THEN 1 ELSE 0 END) AS MAR_PMT,
           SUM(CASE WHEN ( TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'MM'))     =  4 AND TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) > 19 ) OR
                         ( TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'MM')) - 1 =  4 AND TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) < 6  )
                    THEN 1 ELSE 0 END) AS APR_PMT,
           SUM(CASE WHEN ( TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'MM'))     =  5 AND TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) > 19 ) OR
                         ( TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'MM')) - 1 =  5 AND TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) < 6  )
                    THEN 1 ELSE 0 END) AS MAY_PMT,
           SUM(CASE WHEN ( TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'MM'))     =  6 AND TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) > 19 ) OR
                         ( TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'MM')) - 1 =  6 AND TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) < 6  )
                    THEN 1 ELSE 0 END) AS JUN_PMT,
           SUM(CASE WHEN ( TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'MM'))     =  7 AND TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) > 19 ) OR
                         ( TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'MM')) - 1 =  7 AND TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) < 6  )
                    THEN 1 ELSE 0 END) AS JUL_PMT,
           SUM(CASE WHEN ( TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'MM'))     =  8 AND TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) > 19 ) OR
                         ( TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'MM')) - 1 =  8 AND TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) < 6  )
                    THEN 1 ELSE 0 END) AS AUG_PMT,
           SUM(CASE WHEN ( TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'MM'))     =  9 AND TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) > 19 ) OR
                         ( TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'MM')) - 1 =  9 AND TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) < 6  )
                    THEN 1 ELSE 0 END) AS SEP_PMT,
           SUM(CASE WHEN ( TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'MM'))     = 10 AND TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) > 19 ) OR
                         ( TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'MM')) - 1 = 10 AND TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) < 6  )
                    THEN 1 ELSE 0 END) AS OCT_PMT,
           SUM(CASE WHEN ( TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'MM'))     = 11 AND TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) > 19 ) OR
                         ( TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'MM')) - 1 = 11 AND TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) < 6  )
                    THEN 1 ELSE 0 END) AS NOV_PMT,
           SUM(CASE WHEN ( TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'MM'))     = 12 AND TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) > 19 ) OR
                         ( TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'MM')) - 1 = 12 AND TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) < 6  )
                    THEN 1 ELSE 0 END) AS DEC_PMT
      FROM MONETARY_TRANS
    WHERE MONETARY_TRANS_TYPE_ID    = 1                             --payment
    --TESTING
    AND HOUSEHOLD_ID = 90026845409
       AND RESPONSIBLE_PARTY_TYPE_ID = 1                             --household
       AND RECEIVED_DATE > '01-JAN-2008'
       AND ( TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) < 6
        OR   TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) > 19 )
       AND PREMIUM_AMOUNT            > 0
       AND BILLING_TRANS_TYPE_ID     = 6
       AND MONETARY_TRANS_TYPE_ID    = 1
       AND RESPONSIBLE_PARTY_TYPE_ID = 1
    GROUP BY HOUSEHOLD_IDAnd from this I get the results originally posted. From there I need to figure out the households that have values greater than 0 for three or more consecutive months.
    Thanks for your help........
    -Christine

  • Need to test if a column have unique values or not

    Hi all,
    in ETL process I need to check if some cols have unique values or not using sql or plsql.
    Suppose we need to load a big file data with external table initially and then test if values
    on one or more columns have unique values  in order to proceed with ETL process.
    What is the faster test I can execute to verify that a column have unique values or not?
    It's better for the ETL performance, use:
    a. techniques regard constraints like described on Ask tom forum
    "ENABLE NOVALIDATE validating existing data"
    (Ask Tom &amp;quot;ENABLE NOVALIDATE validating existing da...&amp;quot;)
    b. "simply" query on the data?
    like this:
    select count(count(*)) distinct_count,
             sum(count(*)) total_count,
             sum(case when count(*) = 1 then 1 else null end) non_distinct_groups,
             sum(case when count(*) > 1 then 1 else null end) distinct_groups
    from hr.employees a
    group by A.JOB_ID
    c. use analytics function?
    d. use some feature directly on external table?
    Bye in advance

    Here is the example to handling the errrs using LOG_ERRORS into concept. You will check this and let me know if any doubt you have
    DATAFILE:-
    1000,ANN,ZZ105
    1001,KARTHI,ZZ106
    1002,PRAVEEN,ZZ109
    1002,PARTHA,ZZ107
    1003,SATHYA,ZZ108
    1000,ANN,ZZ105
    ----- Original Table With unique constraints
    SQL> CREATE TABLE tab_uniqtest(student_id     NUMBER(10) UNIQUE,
                              student_name   VARCHAR2(15),
                                                      course_name    VARCHAR2(15)
      2    3    4
    Table created.
    ----- External table
    SQL> CREATE TABLE tab_extuniqtest(student_id     NUMBER(10),
      2                               student_name   VARCHAR2(15),
      3                                                  course_name    VARCHAR2(15)
      4                              )
      5  ORGANIZATION EXTERNAL
      6  (
      7  DEFAULT DIRECTORY ann_dir
      8  ACCESS PARAMETERS
      9  (
    10    RECORDS DELIMITED BY NEWLINE
    11    BADFILE 'tabextuniqtest_badfile.txt'
    12    LOGFILE 'tabextuniqtest_logfile.txt'
    13    FIELDS TERMINATED BY ','
    14    MISSING FIELD VALUES ARE NULL
    15    REJECT ROWS WITH ALL NULL FIELDS
    16    (student_id,student_name,course_name)
    17  )
    18  LOCATION ('unique_check.csv')
    19  )
    20  REJECT LIMIT UNLIMITED;
    Table created.
    ---- Error logging table to log the errors
    SQL> CREATE TABLE dmlerrlog_uniqtest(ORA_ERR_NUMBER$     NUMBER ,
      2                                 ORA_ERR_MESG$       VARCHAR2(2000),
      3                                 ORA_ERR_ROWID$      ROWID,
      4                                 ORA_ERR_OPTYP$      VARCHAR2(2),
      5                                 ORA_ERR_TAG$        VARCHAR2(4000),
      6                                 inserted_dt         VARCHAR2(50) DEFAULT TO_CHAR(SYSDATE,'YYYY-MM-DD'),
      7                                 student_id              VARCHAR2(10)
      8                                  );
    Table created.
    ---- Procedure to insert from external table
    SQL> CREATE OR REPLACE PROCEDURE proc_uniqtest
      2  AS
      3  v_errcnt NUMBER;
      4  BEGIN
      5      INSERT INTO tab_uniqtest
      6      SELECT * FROM tab_extuniqtest
      7      LOG ERRORS INTO dmlerrlog_uniqtest('PROC_UNIQTEST@TAB_UNIQTEST') REJECT LIMIT UNLIMITED;
      8      SELECT COUNT(1) into v_errcnt
      9      FROM dmlerrlog_uniqtest
    10      WHERE ORA_ERR_TAG$ = 'PROC_UNIQTEST@TAB_UNIQTEST';
    11       IF(v_errcnt > 0) THEN
    12       ROLLBACK;
    13      ELSE
    14        COMMIT;
    15       END IF;
    16      DBMS_OUTPUT.PUT_LINE ( 'Procedure PROC_UNIQTEST is completed with ' || v_errcnt || ' errors') ;
    17  EXCEPTION
    18   WHEN OTHERS THEN
    19    RAISE;
    20  END proc_uniqtest;
    21  /
    Procedure created.
    SQL> SET SERVEROUTPUT ON
    SQL> EXEC proc_uniqtest;
    Procedure PROC_UNIQTEST is completed with 2 errors
    PL/SQL procedure successfully completed.
    SQL> SELECT STUDENT_ID,ORA_ERR_MESG$ FROM dmlerrlog_uniqtest;
    STUDENT_ID                     ORA_ERR_MESG$
    1002                           ORA-00001: unique constraint (
                                   SCOTT.SYS_C0037530) violated
    1000                           ORA-00001: unique constraint (
                                   SCOTT.SYS_C0037530) violated

  • How to make the vendor column have figure in GRIR line item with RE document type?

    Dear Experts,
         Could you tell me how to make the vendor column have figure in GRIR line item whose document type is RE?
         Thanks!
    Xinling Zhang

    Hi ,
    You are using FAGLL03 .
    FAGLL03 report vendor code is blank
    vendor number in new FAGLL03 tcode (offsetting account information)
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30b96fed-eb5d-2e10-1792-f3ff9f65df8a?QuickLink=index&…
    Also check OSS note
    Note 112312 - Line item: Display of offsetting a/c information
    Note 1034354 - FAGLL03: Display of offsetting account information
    Many Thanks

  • I just got an iphone and am trying to connect it to my itunes account.  Getting the message " This iphone cannot be used because the Apple Mobile Device service is not started.  How do I start it?  Have already been back to the store with it and no change

    I just got an iphone and am trying to connect it to my itunes account.  Getting the message " This iphone cannot be used because the Apple Mobile Device service is not started.  How do I start it?  Have already been back to the store with it and no change.

    http://tinyurl.com/3hs3g2u

  • How to validate input fields as the user is filling up a form with jQuery?

    Hello EA friends.
    Someone has experimented on how to validate input fields as the user is filling up a form with jQuery?, if the field is numeric and insert an A for example, an alert appears showing "insert a number" or not allowed to enter anything until a number is entered.
    Thanks and regards.
    Fer

    Hi Sudeshna.
    Sorry for not responding on time, how can I be included in this code?
    sym.setVariable("typeActivity", "input")
    var Element_1=document.createElement(typeActivity);
    $(Element_1).css({"text-align": "center"});
    //Answer
    sym.setVariable("Answer_1", "4");
    sym.$("box_1").append(Element_1)
    This code is on my creationComplete and it works fine.
    Would greatly appreciate your help.
    Regards.
    Fer García

  • How do I access files that have been recovered (after a Mavericks problem) with the .cca file extension

    How do I access files that have been recovered (after a Mavericks problem) with the .cca file extension

    First, to access documents you must use an app designed for that specific Document type. So Pages will not be able to open PDFs. The Documents app by Readdle can handle PDFs though. In the latter case, you'd open the app, click the menu icon at its top left, and click Open to go to your iCloud Drive. With Pages, if you had files outside the main Pages folder, click + then iCloud and navigate to the file's location.
    Matt

  • How do I purchase music - I have registered but dont know where and how to make a purchase

    How do I purchase music - I have registered but dont know where and how to make a purchase

    Open itunes.
    Go to the itunes store.
    Find whatever you like.
    Click "buy"

  • How to validate a whole column of DataGrid

    I want to validate a whole column of DataGrid using
    Validator.
    How to do that?

    Thanks. It works! Prima!
    It's a little bit difficult for me to write and understand the English terms correctly, cause I am German.
    I did not recognize, that I had to go to the Library Module!
    Here I repeat Rikk's way in German:
    Im Bibliothek-Modul
    Rasteransicht
    Bilder selektieren
    Im Menufeld Ad-hoc Entwicklung:
    Freistellungsfaktor einstellen: 16:9

  • How to differentiate the EMPTY Records and Null Values in DSO

    Hello....how is everyone here?? Ehehehe!
    I try to load some data from the flat file which contains some EMPTY data and Null Values for the records. The data type for the InfoObjects of the fields "Quantity" is "number". The sample data from the flat file (CSV) are as below:
    Food              Quantity
    Hamburger  -       12
    Cheese        -       0
    Vegetable      -               (Empty)
    When I try to load the above sample data to the DSO, I get the results of the data as follow:
    Food              Quantity
    Hamburger     - 12.000
    Cheese           -  0.000
    Vegetable         - 0.000
    In this case, how can the user differentiate whether the records is contain empty value of null values in DSO? This is kinda of hard to differentiate the both scenarios above. Is there any way to differentiate the scenarios described here?
    Thanks alot =)

    Hi Fluffy,
    It depends on the initial values of the data type
    The inital values For quantity/Currency/ Numbers it takes spaces as 0
    for char it is SPACE
    We cannot differeniate between space and null values.
    IF you have to force this then define quantity as char and load the data. we will not have units and aggregation in this case.
    Hope this helps.
    PV

  • Display columns for Null Values in Crosstab

    Hi All,
    I have developed a crosstab in CR based on SAP BW Query. Report requirement demands to display all columns even though data is not present for those columns. However this report doesn't show the columns when there is no data. Can you please help to resolve this issue !!!
    Regards,
    Samir

    Samir,
    As Abhilash stated, the crosstab rows/columns are like groups.
    If you do not have a value to create a column, it will not show in the crosstab. Do you have a table that lists all the values you wish to show in the columns? Is it used in the report? Perhaps you can use it to create the columns by using a left outer link from the table with all the values to data table you are reporting on, and use it for your columns
    If the columns are dates, and you do not have data for a particular date, that can be done.
    [This post has a solution for a SQL server|How to dynamically create a table to join with;.
    [Here is another solution|Generating Calendar Months for the year;.
    There are other posts regarding this issue. I can not think of one at the moment for building a table for values other than a date but I am pretty sure I have seen one.
    Debi

  • ORA-01405 in Pro*C Although no Column has NULL Value

    I have a Pro*C program that fetch a cursor from Oracle 8.1.5 into host variables without indicators. I have tried the SQL statement and the SQL will never return any NULL value in any column, however I still got the ORA-01405 error. Any one has any clue?

    Use Indicator variables and let me know if it solves your problem.
    http://docs.jcu.edu.au/oracle/doc/server.804/a58233/dev.htm#2239

  • How to set a cell to accept null values.

    Hello;
    I am having a problem with my insert query. My form, is passing the year (2010 and up) as a null value. I am using access (ugg) and I can't get it to accept this null value. I have tried setting required to no, and allow zero lenght, even deleted the table and remade it.. STILL I get this error:
    Error Executing Database Query.
    [Macromedia][SequeLink JDBC Driver][ODBC Socket][Microsoft][ODBC Microsoft Access Driver]Numeric value out of range (null)
    The error occurred in C:\Websites\187914kg3\accManage\signUp.cfm: line 234
    Called from C:\Websites\187914kg3\accManage\signUp.cfm: line 206
    Called from C:\Websites\187914kg3\accManage\signUp.cfm: line 204
    Called from C:\Websites\187914kg3\accManage\signUp.cfm: line 4
    Called from C:\Websites\187914kg3\accManage\signUp.cfm: line 1
    Called from C:\Websites\187914kg3\accManage\signUp.cfm: line 234
    Called from C:\Websites\187914kg3\accManage\signUp.cfm: line 206
    Called from C:\Websites\187914kg3\accManage\signUp.cfm: line 204
    Called from C:\Websites\187914kg3\accManage\signUp.cfm: line 4
    Called from C:\Websites\187914kg3\accManage\signUp.cfm: line 1
    232 :         <cfqueryparam cfsqltype="CF_SQL_INTEGER" value="#form.securitCode#">,
    233 :         <cfqueryparam cfsqltype="CF_SQL_INTEGER" value="#form.ExpirationMonth#">,
    234 :         <cfqueryparam value="#FORM.ExpirationYear#" cfsqltype="CF_SQL_VARCHAR">)
    235 : </cfquery>
    236 :
    SQLSTATE
      22003
    SQL
       INSERT INTO MerchandiseOrdersItems (c_ID, cc_type, cc_num, cc_verify, cc_expir_m, cc_expir_y) VALUES ( (param 1) , (param 2) , (param 3) , (param 4) , (param 5) , (param 6) )
    VENDORERRORCODE
      3
    This is my form element and query that is causing the problem:
    <cfparam name="FORM.ExpirationYear" default="">
    <form>
    <select name="ExpirationYear" class="formSelect">
               <cfloop index="i" from="#VARIABLES.y1#" to="#VARIABLES.y2#">
                  <option value="#i#"<cfif FORM.ExpirationYear EQ i> selected</cfif>>#NumberFormat(i,"0000")#</option>
               </cfloop>
             </select>
    </form>
    <cfquery datasource="#APPLICATION.dataSource#" dbtype="ODBC">
    INSERT INTO MerchandiseOrdersItems
    (c_ID, cc_type, cc_num, cc_verify, cc_expir_m, cc_expir_y)
    VALUES (<cfqueryparam value="#getUpdate.NewID#" cfsqltype="CF_SQL_VARCHAR">,
            <cfqueryparam cfsqltype="cf_sql_varchar" value="#form.creditType#">,
            <cfqueryparam cfsqltype="CF_SQL_LONGVARCHAR" value="#form.creditCard#">,
            <cfqueryparam cfsqltype="CF_SQL_INTEGER" value="#form.securitCode#">,
            <cfqueryparam cfsqltype="CF_SQL_INTEGER" value="#form.ExpirationMonth#">,
            <cfqueryparam value="#FORM.ExpirationYear#" cfsqltype="CF_SQL_VARCHAR" null="yes">)
    </cfquery>
    The string that is erroring is this:
    <cfqueryparam value="#FORM.ExpirationYear#" cfsqltype="CF_SQL_VARCHAR">
    I still get this error. SO It has to be something inside the access database not allowing this null value. It is set as text right now, allowing zero length and not required.
    Can anyone help me please?

    Hi
    Usually the error occurs due to mismatch in datatype of db field and cfsqltype of cfqueryparam. Is "FORM.ExpirationYear " of type date?.
    If so <cfqueryparam value="#FORM.ExpirationYear#" cfsqltype="CF_SQL_DATE" null="yes">)
    "http://www.adobe.com/livedocs/coldfusion/6.1/htmldocs/tags-b20.htm" (have a look ).
    Hope this will solve your issue

  • Collection is populated, but HALF of the total records have null values?

    can anyone see why this may not be working properly. I am creating a collection (CATCH_C) based on the number of rows in an existing collection (EFFORT_C). For every record in EFFORT_C, there needs to be one in CATCH_C.
    In my example, I know that there are two EFFORT_C records. There are 12 records in the table FREQUENT_SPECIES, therefore, my CATCH_C collection should (after running through loop) have 24 records.
    CATCH_C is created with 24 records, however record numbers 16-24 only have the data for disposition_code. The other data is all missing...however rows 1-15 are perfect. Any thoughts?
    thanks! Karen
    <p>
    open effort_x;
    fetch effort_x into effort_nbr;
    close effort_x;
    for x in 1..effort_nbr
    LOOP
    for y in (select 1,
    species_itis,
    disposition_code,
    null reported_qty,
    unit_measure,
    null sale_disposition_flag,
    price,
    null permit_id,
    market_code,
    grade_code, null
    from FREQUENT_SPECIES
    where permit_id = :G_PERMIT_ID order by fav_order, species_itis, market_code)
    LOOP
    l_seq_id := apex_collection.add_member(
    p_collection_name => 'CATCH_C',
    p_c033 => x,
    p_c034 => y.SPECIES_ITIS,
    p_c035 => y.DISPOSITION_CODE,
    p_c036 => null, --reported qty
    p_c037 => y.unit_measure,
    p_c038 => '0', --sale disp
    p_c039 => y.PRICE,
    p_c040 => pPermitID,--permit id
    p_c041 => y.MARKET_CODE,
    p_c042 => nvl(y.GRADE_CODE,'999'),
    p_c043 => null,
    p_c044 => null,
    p_c045 => null);
    end loop;
    end loop;
    </p>

    I thought I had resolved as it seems driven by pagination....but alas (while pagination is odd), the disposition code still appears for every collection record...but the other data does not. again, any thoughts are appreciated.

  • In ColumnChart, how to stop displaying small column for zero value?

    I'm trying to create a ColumnChart that does not display a column when the value is zero. The chart currently looks like this:
    This is a stacked column chart with red values representing Faults and green values representing Throughput. Each hour has an explicit value of zero for Faults. I don't want to see any red lines when the value is zero. Is there any way to accomplish this?
    My code looks like this:
    <mx:Script><![CDATA[
         import mx.collections.ArrayCollection;
         [Bindable]
         public var simpleStats:ArrayCollection = new ArrayCollection([
            {Hour:"0:00", Throughput:0, ThroughputThreshold:2000, Faults:0, MaxResponseTime:450, AvgResponseTime:200, MinResponseTime:180,
                 AuthenticationAcceptance:50, AuthenticationRejection:0, AuthorizationAcceptance:50, AuthorizationRejection:0},    
            {Hour:"1:00", Throughput:0, ThroughputThreshold:2000, Faults:0, MaxResponseTime:450, AvgResponseTime:200, MinResponseTime:180,
                 AuthenticationAcceptance:50, AuthenticationRejection:0, AuthorizationAcceptance:50, AuthorizationRejection:0},    
            {Hour:"2:00", Throughput:0, ThroughputThreshold:2000, Faults:0, MaxResponseTime:450, AvgResponseTime:200, MinResponseTime:180,
                 AuthenticationAcceptance:50, AuthenticationRejection:0, AuthorizationAcceptance:50, AuthorizationRejection:0},    
            {Hour:"3:00", Throughput:5, ThroughputThreshold:2000, Faults:0, MaxResponseTime:450, AvgResponseTime:200, MinResponseTime:180,
                 AuthenticationAcceptance:50, AuthenticationRejection:0, AuthorizationAcceptance:50, AuthorizationRejection:0},    
            {Hour:"4:00", Throughput:0, ThroughputThreshold:2000, Faults:0, MaxResponseTime:450, AvgResponseTime:200, MinResponseTime:180,
                 AuthenticationAcceptance:50, AuthenticationRejection:0, AuthorizationAcceptance:50, AuthorizationRejection:0}
      ]]></mx:Script>
                                     <mx:ColumnChart id="trafficChart"
                                        dataProvider="{simpleStats}"
                                        showDataTips="true" width="500" height="100%" seriesFilters="[]"
                                        type="stacked">
                                        <mx:verticalAxis>
                                            <mx:LinearAxis title="Messages" id="a1"/>
                                        </mx:verticalAxis>                                   
                                        <mx:horizontalAxis>
                                           <mx:CategoryAxis
                                                   id="TrafficTimeAxis"
                                                dataProvider="{simpleStats}"
                                                categoryField="Hour"
                                                />
                                        </mx:horizontalAxis>
                                        <mx:horizontalAxisRenderers>
                                            <mx:AxisRenderer axis="{TrafficTimeAxis}" canDropLabels="true"/>                                       
                                        </mx:horizontalAxisRenderers>                                            
                                        <mx:series>                                                                         
                                           <mx:ColumnSeries
                                                yField="Faults"
                                                displayName="Faults"
                                                fill="{sc2}"
                                                stroke="{s2}"
                                                 minHeight="0">
                                           </mx:ColumnSeries>                                                                                                          
                                           <mx:ColumnSeries
                                                yField="Throughput"
                                                displayName="Throughput"
                                                fill="{sc1}"
                                                stroke="{s1}"
                                                minHeight="0">
                                            </mx:ColumnSeries>                                      
                                        </mx:series>
                                     </mx:ColumnChart>

    Answered my own question!!
    The solution is to set the stroke for the ColumnSeries to {noStroke}, which I defined like this:
        <mx:Stroke id="noStroke" color="0xFFFFFF" weight="0"/>
    Note that if you define {noStroke} without a color property, black is used by default, which means that those columns that do appear show up in black stroke outline.
    If there's a more elegant solution to the problem, please let me know...

Maybe you are looking for