Math function ' ' on Date columns is showing incorrect results. Pls xplain!

Hi guys,
I'm having a query wherein two date columns are used. One holds just the date part and the other date+time.
Columns are: - processing_date (holds on date)
authorised_ts (holds date+time)
The query is : -
SELECT a.processing_date,a.authorised_ts,
SUBSTR(a.processing_date,1,9),SUBSTR(a.authorised_ts,1,9)
FROM TEBINS01 a WHERE a.ref_instty_code = 'BULK'
AND a.status_code = 'PPAY'
AND SUBSTR(a.processing_date,1,9) < SUBSTR(a.authorised_ts,1,9)
I know that the substr function is creating the problem as it is converting the columns into characters.
*****The results show that 22-NOV-04 is greater than 12-JAN-05****
I've tried to use the below query to convert the above 2 dates into number(using to_number) via: -
SELECT TO_NUMBER(SUBSTR('22-NOV-04', LENGTH(RTRIM('22-NOV-04','1234567890'))-LENGTH('22-NOV-04'))) FROM dual
The result is 4
and when I use the above query for 12-JAN-05 the result is 5.
So even when I convert to number 5 is definitely greater than 4. But how and why is the substr function in the original query giving the wrong results?
Thanks in advance guys
B

As David points out, if the two columns are stored as dates, then you do not need to convert them at all to compare them. The only possible issue may be the fact that processing_date has no time component and authorised_ts has a time component.
Given the following:
SQL> DESC t;
Name                                      Null?    Type
ID                                                 NUMBER
PROCESSING_DATE                                    DATE
AUTHORISED_TS                                      DATE
SQL> SELECT * FROM t;
        ID PROCESSING_DATE      AUTHORISED_TS
         1 10-Aug-2005 00:00:00 09-Aug-2005 03:51:47
         2 06-Aug-2005 00:00:00 11-Aug-2005 07:44:42
         3 10-Aug-2005 00:00:00 08-Aug-2005 17:18:07
         4 08-Aug-2005 00:00:00 09-Aug-2005 11:45:59
         5 12-Aug-2005 00:00:00 08-Aug-2005 12:56:49
         6 06-Aug-2005 00:00:00 10-Aug-2005 01:43:02
         7 08-Aug-2005 00:00:00 07-Aug-2005 09:23:19
         8 10-Aug-2005 00:00:00 10-Aug-2005 11:04:21
         9 05-Aug-2005 00:00:00 08-Aug-2005 11:29:47
        10 11-Aug-2005 00:00:00 07-Aug-2005 14:51:53You obvioulsy would want id's 2, 4, 6, and 9, but what about 8? The two dates are on the same day. If you only want to consider cases where the day is less (i.e. exclude id 8) then you should query:
SQL> SELECT * FROM t
  2  WHERE processing_date < TRUNC(authorised_ts);
        ID PROCESSING_DATE      AUTHORISED_TS
         2 06-Aug-2005 00:00:00 11-Aug-2005 07:44:42
         4 08-Aug-2005 00:00:00 09-Aug-2005 11:45:59
         6 06-Aug-2005 00:00:00 10-Aug-2005 01:43:02
         9 05-Aug-2005 00:00:00 08-Aug-2005 11:29:47However, if you hink that id 8 should be included then it is simply:
SQL> SELECT * FROM t
  2  WHERE processing_date < authorised_ts;
        ID PROCESSING_DATE      AUTHORISED_TS
         2 06-Aug-2005 00:00:00 11-Aug-2005 07:44:42
         4 08-Aug-2005 00:00:00 09-Aug-2005 11:45:59
         6 06-Aug-2005 00:00:00 10-Aug-2005 01:43:02
         8 10-Aug-2005 00:00:00 10-Aug-2005 11:04:21
         9 05-Aug-2005 00:00:00 08-Aug-2005 11:29:47Note that the comparision does not depend on the display format of the date:
SQL> ALTER SESSION SET nls_date_format = 'mm/dd/yy';
Session altered.
SQL> SELECT * FROM t
  2  WHERE processing_date < TRUNC(authorised_ts);
        ID PROCESSI AUTHORIS
         2 08/06/05 08/11/05
         4 08/08/05 08/09/05
         6 08/06/05 08/10/05
         9 08/05/05 08/08/05HTH
John

Similar Messages

  • Math functions for dates

    Hello,
    Have you ever used a math function for dates (MMDDYYYY) not just a number? I'm looking to send an email out based on date field. For example, if someone's contract expires on 1/1/2016, I'd like to send them out emails 30, 152, 212 and 335 days before that date. Right now, we have fields set up for those 30, 152, 212 and 335 days and would like to know if there's a math function that would automatically fill them in dynamically based on their contract exp. date.
    Thanks for your help and suggestions.

    rmabrey wrote:
    I have the calculator working but I am having trouble figuring out thow to do a square root function, nth factorial, absolute value, and Fibonacci. java.lang.Math.sqrt()
    nothing for factorial - write your own.
    java.lang.Math.abs()
    nothing for Fibonacci - write your own.
    %

  • Using CURRENT_DATE function in DATE column

    Hi
    I am not able to use CURRENT_DATE function in my target DATE column.I am getting error like "EDATE": invalid identifier with defintion as 'Insert PK error'. This column is not there in the source table.
    Data Transfer from Oracle to Oracle
    IKM = SQL Incremental Update
    CKM = SQL Check
    LKM = LKM SQL to SQL

    Hi Shaishavi,
    check your Target datastore in Model whether it contains the DATE column or Not.
    have you use this Date column in PK?.
    Colud you please sent me the Error command which you have faced? And tell me about the interface detaily.
    Thanks,
    Madha.

  • Pivot table in BI Publisher: Different aggregate functions in data columns

    Hi, everyone!
    I`ve got some troubles with pivot table in my rtf-template.
    Here is my xml:
    <ROWSET>
         <ROW>
              <_BI_SUBRF_MO_._MUN_NAME_>МО Петроградский р-н</_BI_SUBRF_MO_._MUN_NAME_>
              <_BI_PERS_ACCOUNT_CARD_._BI_PAC_NMB_>714000003</_BI_PERS_ACCOUNT_CARD_._BI_PAC_NMB_>
              <_BI_MONTH_DEBET_._BI_DEBET_SUM_>0.0</_BI_MONTH_DEBET_._BI_DEBET_SUM_>
              <_BI_CALENDAR_._YEAR__>2009</_BI_CALENDAR_._YEAR__>
              <_BI_CALENDAR_._MONTH__>8</_BI_CALENDAR_._MONTH__>
         </ROW>
         <ROW>
              <_BI_SUBRF_MO_._MUN_NAME_>МО Петроградский р-н</_BI_SUBRF_MO_._MUN_NAME_>
              <_BI_PERS_ACCOUNT_CARD_._BI_PAC_NMB_>714000004</_BI_PERS_ACCOUNT_CARD_._BI_PAC_NMB_>
              <_BI_MONTH_DEBET_._BI_DEBET_SUM_>165.58</_BI_MONTH_DEBET_._BI_DEBET_SUM_>
              <_BI_CALENDAR_._YEAR__>2009</_BI_CALENDAR_._YEAR__>
              <_BI_CALENDAR_._MONTH__>7</_BI_CALENDAR_._MONTH__>
         </ROW>
         <ROW>
              <_BI_SUBRF_MO_._MUN_NAME_>МО Петроградский р-н</_BI_SUBRF_MO_._MUN_NAME_>
              <_BI_PERS_ACCOUNT_CARD_._BI_PAC_NMB_>714000004</_BI_PERS_ACCOUNT_CARD_._BI_PAC_NMB_>
              <_BI_MONTH_DEBET_._BI_DEBET_SUM_>165.58</_BI_MONTH_DEBET_._BI_DEBET_SUM_>
              <_BI_CALENDAR_._YEAR__>2009</_BI_CALENDAR_._YEAR__>
              <_BI_CALENDAR_._MONTH__>7</_BI_CALENDAR_._MONTH__>
         </ROW>
    ...... and so on..
    </ROWSET>
    In the pivot table i`d like to see one row for every BISUBRF_MO_._MUN_NAME_ using BICALENDAR_._YEAR__ and BICALENDAR_._MONTH__ as measures and sum of BIMONTH_DEBET_._BI_DEBET_SUM_ and count of unique (or at least just count of) BIPERS_ACCOUNT_CARD_._BI_PAC_NMB_ in cells.
    I create a pivot table using wizard, everything ok except one thing: as i understand, in pivot table for data in rows we can use only one kind of aggregate function e.g. only sum or only count.
    Is there any way to use different aggregate functions in data cells?
    Thank you

    As you can see, when we use crosstab tag we can specify only one aggregate function for data cells.
    Is there any way to get in XSL-FO (where we can what really happens) instead of:
    <T1>
    <xsl:value-of select="sum(current-group()/_BI_PERS_ACCOUNT_CARD_._BI_PAC_UNID_)"/>
    </T1>
    <T2>
    <xsl:value-of select="sum(current-group()/_BI_MONTH_DEBET_._BI_DEBET_SUM_)"/>
    </T2>
    this
    <T1>
    <xsl:value-of select="sum(current-group()/_BI_PERS_ACCOUNT_CARD_._BI_PAC_UNID_)"/>
    </T1>
    <T2>
    <xsl:value-of select="count(current-group()/_BI_MONTH_DEBET_._BI_DEBET_SUM_)"/>
    </T2>
    Edited by: user12115038 on 26.10.2009 8:08

  • Certain data columns not showing up during a query

    I have having trouble seeing certain data types when I search in Oracle SQL developer. Fields such as Dates and numeric values are showing as blank when I run a query. If I run the same query in SQL Plus, date values and numeric values appear.

    I am using SQL developer 2.1, but this was also happening when I was using early versions such as 1.5.5
    THe Database is an oracle 11g database
    on my machine I have an instance of java 1.5.0_18 running but within the application there is a java 1.6, I am not sure if the 1.6 is executing the program or not.
    WIndows XP service 2002 service pack 3
    Edited by: user9958587 on Jan 7, 2010 3:27 AM
    SELECT * FROM AsAddress which will return our address table containing dates.
    Edited by: user9958587 on Jan 7, 2010 3:27 AM

  • Percentage Result  showing incorrect  result

    Dear Experts ,
    my report region wise sales and Sector wise sales, calculating percentage region wise and Sector wise, For example
    Region
    Sector
    Net Qty
    %AGE
    %AGE overall
    Uttar Pradesh
    Urban
    7,797.00
    4.58 %
    4.58 %
    Rural
    652.30
    0.38 %
    0.38 %
    Result
    8,449.30
    4.97 %
    4.97 %
    Dadra&NgrHaveli
    Semi Urban
    383.00
    0.23 %
    0.23 %
    Result
    383.00
    0.23 %
    0.23 %
    Delhi
    Urban
    8,714.80
    5.12 %
    5.12 %
    Rural
    2,407.85
    1.42 %
    1.42 %
    Reuslt
    11,122.65
    6.54 %
    6.54 %
    Uttarakhand
    Semi Urban
    37.50
    0.02 %
    0.02 %
    Reulst
    37.50
    0.02 %
    0.02 %
    Overall Result
    1,70,091.95
    100.00 %
    100.00 %
    Percentage calculation Net qty %A Net Qty for both column , displaying both column same percentage , i need display within %AGE column as Result  100% but it showing as per overall region percentage result, if we used two characterstic in report it not work on both charcterstic wise please let me know get each  region is 100%. thanks in advance who provider soultion
    Thanks
    Ramesh G

    Hi Jain,
    same function used
    i need 100% on each region , each region containing 2 or more sectors, and overall 5 region each region share showing with percentage. region wise percentage showing correct values , but within region sector  showing correct reult but total sector percentage showing as per region percantage , here display individual result.
    Thanks
    Ramesh

  • DAX Calculation shows incorrect results when driven from Time Slicer

    Hi,
    We have defined a DAX quarter on quarter calculation  
    PREV Q % 13F:=divide([PREV Q ABS 13F],[Prior Quarter 13F])
    Prior Quarter 13F:=CALCULATE(sum([TotalValue]), DATEADD(Time[Date], -1, QUARTER))
    PREV Q ABS 13f:=CALCULATE(sum([TotalValue]))-[Prior Quarter 13F]
    which works fine in Pivottables in Excel but when time selection is driven by a time slicer the calculation doesn't work anymore:
    Is this a but or expected behaviour? Are there other ways to use a control that affects multiple other pivot tables like the time slicer?
    Thanks for your help!
    Martin

    OK, there are some really interesting points here - i think the screenshot below best explains it:
    Time Slicers use MDX subselects to propagate the selection to the pivot table:
    SELECT .... FROM (SELECT Filter([Fact13FSample].[ReportDate].Levels(1).AllMembers, ([Fact13FSample].[ReportDate].CurrentMember.MemberValue>=CDate("2013-04-01") AND [Fact13FSample].[ReportDate].CurrentMember.MemberValue<CDate("2013-07-01")))
    ON COLUMNS  FROM  ...
    this works just fine for normal measures but seems to cause issues with time-intelligence function
    it actually causes an issue with all calculations that use CALCULATE and thereby shift the context out of the subselect
    it seems that you cannot get out of this context using DAX- at least i could not find a solution yet
    not even this works:
    All Quarter 13F:=CALCULATE([SumTV], ALL('Time'))
    the result is always limited to the subselect :/
    funny thing is that this only seems to happen with this specific subselects so i guess it is further related to MDX FILTER() or .MemberValue or CDATE()
    the only option i could currently think of is to use regular slicers
    Gerhard Brueckl
    blogging @ http://blog.gbrueckl.at
    working @ http://www.pmOne.com

  • Search Page by date field not showing up results

    Hi,
    I am using Jdev 11g and new to adf.
    My applciation needs a search page based on a date field.
    I created a viewcriteria for the object which expects a date field from the user.( the bind variable is of type Date)
    After this i dragged the viewcriteria as af:query (panel with table) on the jspx page.
    Now when i run the application, that is when i enter the date (calendar autogenerated by query component),
    it does not show up any results.
    My date field in the database has a timestamp attached to it, somewhere i read that the timestamp may be causing the problem.
    But i have not found any solution for this one.
    This looks very basic to me, i am sure i am missing soemthing important.
    Besides i even tried the approach of programmaticlly populating the Viewobject(by not using the any query component),
    i can see the Viewobject being populated in the logs( the row count) but on the display page, no rows are shown.
    I am sure i am doing something wrong for this one.
          AppModuleImpl am = this.getAm();
           ViewObject submittalVO = am.findViewObject("AcrSubmittallogView1");
           System.out.println("after getting VO");
           String subDate = this.getSubDate().getValue().toString();
           String query = " to_char(SubmitDtTm,'mm/dd/yyyy') = '"+subDate+"'";
           submittalVO.setWhereClause(query);
           System.out.println("QUERY>>>> "+submittalVO.getQuery());
           submittalVO.executeQuery();
          System.out.println("after executing query "+submittalVO.getRowCount());
           this.setRenderLogTable(true);But i actually want to use the built in query component instead of programmatically doing it.
    Can someone please guide me further.
    Any help will be grt.
    Thanks in advance
    ash
    Edited by: user1175461 on Jul 15, 2010 1:18 PM

    Still not working for me either, here's exactly what I'm doing.
    My query is as follows:
    SELECT
    RO.repair_line_id,
    RO.repair_number,
    SR.customer_po_number, segment1,
    trunc(RO.creation_date) as creation_date,
    I've created a Bind Variable for the creation_date as follows:
    <Variable
    Name="createDate"
    Kind="viewcriteria"
    Type="oracle.jbo.domain.Date"/>
    Which is linked to a view criteria:
    <ViewCriteria
    Name="RepairSearchVVOCriteria"
    ViewObjectName="com.services.cs.vvo.RepairSearchVVO"
    Conjunction="AND">
    <Properties>
    <CustomProperties>
    <Property
    Name="displayOperators"
    Value="InAdvancedMode"/>
    <Property
    Name="autoExecute"
    Value="false"/>
    <Property
    Name="allowConjunctionOverride"
    Value="true"/>
    <Property
    Name="showInList"
    Value="true"/>
    <Property
    Name="mode"
    Value="Basic"/>
    </CustomProperties>
    </Properties>
    <ViewCriteriaRow
    Name="vcrow1"
    UpperColumns="1">
    <ViewCriteriaItem
    Name="CreationDate"
    ViewAttribute="CreationDate"
    Operator="="
    Conjunction="AND"
    Value=":createDate"
    IsBindVarValue="true"
    Required="Optional"/>
    </ViewCriteriaRow>
    </ViewCriteria>
    I then dragged the criteria into the page. When running it I get the following:
    AND SR.customer_id =:psCustomerId) QRSLT WHERE ( ( (CREATION_DATE = :createDate ) ) )
    <ViewObjectImpl><bindParametersForCollection> [3510] Bind params for ViewObject: [com.xxx.services.cs.vvo.RepairSearchVVO]RepairSearchAM.RepairSearchVVO1
    <OracleSQLBuilderImpl><bindParamValue> [3511] Binding param "psCustomerId": 34758
    <OracleSQLBuilderImpl><bindParamValue> [3512] Binding param "createDate": 2010-02-18
    Which never brings back any data. My date's look as follows in the database:
    '18-FEB-10'
    I never get any results for the date. I've also tried using the to_char to format the date as the same format, but that always gives a variety of errors. This is driving me batty =0 Any ideas on why it never pulls back data?
    Thanks, Graeme.

  • Since upgrading to Mavericks the "search" function in mailbox does not show any results, however spotlight is working fine.

    The search function on my mailbox is not responding after trying to search my mailbox. I am able to search my mailboxes through Spotlight though. This seems to be since upgrading to mavericks.
    I was wandering if anyone has this problem and knows how I can resolve it.
    Thank you

    Hmmm,
    Open Console in Utilities & see if there are any clues or repeating messages when this happens.

  • Incorrect result set with using isnull() function  in IQ 16

    Hi team,
    We have IQ 16 on HP UX.
    When we use isnull() function in where clause we get incorrect result set if we do not use column name in the result set.
    In first select we get result with one row but in second one we get an empty result set.
    select ID, dat_start, dat_end, dat_stop
    from table_test
    where ID=1105935925
    and isnull(dat_stop,dat_start) <> dat_end
    select ID
    from table_test
    where ID=1105935925
    and isnull(dat_stop,dat_start) <> dat_end
    It depends on number of row or volume of data in table, It is possible to use option Revert_To_V15_Optimizer to get the correct result.
    Do you have any different idea how to solve it?
    Thanks Milos.

    We have tested two versions:
    Sybase IQ/16.0.0.653/131122/P/sp03/ITANIUM/HP-UXi 11.31/64bit/2013-11-22 01:49:18
    SAP IQ/16.0.0.807/140507/P/sp08/ITANIUM/HP-UXi 11.31/64bit/2014-05-07 21:11:45
    Both versions have given same mistake.
    We have not opened any support case for this issue because it is data depended issue. It is not easy to simulate it as an example.
    Do you think we should open a support case for it?
    Miloš

  • CKF not showing correct results in BEx Analyzer

    Dear Friends,
    I am getting different results when viewed from BEx Analyzer and Web Analyzer for the same query. BEx Analyzer shows incorrect results. The column that is showing different is a local formula (say Formula3) that is a result of dividing Formula1 by Formula2.
    BEx Web calculates Formula3 correctly while BEx analyzer does not.
    I am in BI 7.0 SP 10.
    Any Clues?
    Thanks
    Viren

    For this calculated column set aggregation level as sum.

  • Rownum giving Incorrect  Result in 11gR2 but working ok in 10gR2

    Hi All,
    We have following query which is working fine in 10g but in 11g it is showing incorrect result.
    select x.*,rownum from (select rat.rating_agency_id from bus_ca_cpty_rating rat,MST_CP_RATING mst
    where rat.org_id=618
    and
    rat.rating_agency_id=mst.rating_agency_id
    and
    rat.rating_value=mst.rating_value
    and
    rat.heritage_system=mst.heritage_system
    order by rat.rating_date,rat.rating_time)x
    where rownum=1;
    Result Without last Check <where rownum=1> in the query (in both 10g and 11g)
    RATING_AGENCY_ID     ROWNUM
    3     1
    1     2
    Result of the query in 11gR2 (11.2.0.3)
    RATING_AGENCY_ID     ROWNUM
    1     1
    Result of the query in 10gR2 (10.2.0.3)
    RATING_AGENCY_ID     ROWNUM
    3     1
    Request your help to resolve the issue(please tell me the bug name if it is a bug) and please let me know how it is processing the query in 11g.
    Edited by: 906061 on Jun 19, 2012 2:22 AM

    T.PD wrote:
    906061 wrote:
    Result Without last Check <where rownum=1> in the query (in both 10g and 11g)
    RATING_AGENCY_ID     ROWNUM
    3     1
    1     2
    Result of the query in 11gR2 (11.2.0.3)
    RATING_AGENCY_ID     ROWNUM
    1     1
    Result of the query in 10gR2 (10.2.0.3)
    RATING_AGENCY_ID     ROWNUM
    3     1Your desired result depends on the wrong idea if implicid ordering of the results. there is no such!
    Database does not sort returned rows any how (unless you use order by in your query). The order of returned rows may be consistent over a long period but if the table contents is reorganized or (as I assume) you import data to anotehr database the order may change.
    To make the long storry short: you need another filter condition than <tt>rownum = 1</tt>.
    bye
    TPDLook closely: it looks like a standard top-n query with the order by in the sub-query.

  • IE6 showing IE7 results

    Hi, this is going to sound odd but ...
    Problem Description
    I am finding that "after a period" of rendering IE6 and IE7 results simultaneously, that the IE6 Browser window starts to show the IE7 results. Once this starts it always seems to return the IE7 results. Logging out and back in again, seems to fix the issue but this cannot be guaranteed - sometimes it fixes the issue straightaway and sometimes it does not.
    Steps to RecreateURL is http://bbb.rockingdesign.co.nz/
    I am running on a MacI am running the main BrowserLab interface
    Expected Results
    I have conditional style sheets that will turn the background of the Welcome box red for IE6 and green for IE7.
    Actual Results
    Here is a link to an image showing IE6 and IE7 running correctly side by side. IE6 is red and IE7 is green.
    http://sandbox.rockingdesign.co.nz/images/BrowserLab-1.jpg
    Here is a link to an image showing IE6 returning the same result as IE7 - both boxes are green. Note right-hand Browser window should be IE6.
    http://sandbox.rockingdesign.co.nz/images/BrowserLab-2.jpg
    Thanks for looking
    Tim

    Hi Archna
    I have just recreated the problem ...
    I logged in and used a Browser Set of IE6, IE7, IE8 and IE9. I entered http://bbb.bargainboatbits.co.nz and hit "refeshed the screens" with 0 delay. I had IE6 and IE7 as a 2up - both pages were shown from the correct browsers. I did not however check IE8 or IE9 windows. View source on the page confirmed the Data Center as <!-- Loaded From: ukprod -->.
    I then immediately hit the "refresh the screens" button, still with IE6 and IE7 as a 2 up on the same URL. Now the IE6 window was showing the IE7 results.  View source still shows Data Center as <!-- Loaded From: ukprod -->. I hit refresh again and the same problem occurs again.
    Once IE6 starts showing IE7 results I have not been able to make it start showing the correct IE6 results again. Logging out and back in again eventually fixes the issue but not necessarily immediately. The problem persists some times when you log in again.
    It is always the IE6 window that shows IE7 results, it never shows results from another browser and none of the other browser windows show IE6 results.
    The current URL that is showing incorrect results is https://browserlab.adobe.com/en-us/index.html#state=use;browsers=WXPIE6000%2CWXPIE7000%2CW XPIE8000%2CWXPIE9000;zoom=100;url=http%3A%2F%2Fbbb.rockingdesign.co.nz;view=1
    I am using the main Browser Lab URL from New Zealand if that is of any relevance.
    Hope some of this helps.
    Do you want my log in details??
    Regards
    Tim

  • Report Viewer shows incorrect data when viewing pages from last to first

    Post Author: Fmorales
    CA Forum: .NET
    Hello.
    I've made a huge report with Crystal Reports for Visual Studio 2005, and sometimes the Report Viewer show data with errors.
    If I see all pages of my report in order, 1 first, then 2nd, 3, 4... until the last one.... The report is always correct.
    If I see all pages in reverse order, 1 first (shown by default), then last one, then last one-1.... until 2nd.. All years show incorrect, except first one... 
    In an outer section, for every year, there is a final row which shows summarize calculated data. The error consists in that every value of the row is 0.
    It seems that Crystal Report calculates while showing, that's good.. but... Why does it ignore the data before when I see directly the last page?? It forces me to see all pages one by one in ascendant order to ensure data is correct.. I must fix that error.
    The way I calculate data in the problematic summarize row is a bit complicated, but I'll try... Let's focus in one only column (the other ones are similar). The summarize value is a formula which simply show a global value :
    WhilePrintingRecords;
    CurrencyVar margenActual;
    which is being increasing or decreasing along the group:
    WhilePrintingRecords;
    CurrencyVar actual:=actual+CurrentFieldValue; 
    if {PresupPeriodifMesesAux_DS.TIPO} = 'PAGOS' then         CurrencyVar margenActual:=margenActual-CurrentFieldValueelse    CurrencyVar margenActual:=margenActual+CurrentFieldValue;
    DefaultAttribute
    It is placed in the backgrond property of a CrossTab cell in a hidden pre-section... Well.. I know it's a bit complicated, but I have to do that way because it was the only trick I found to make a summarize file before printing data summarized (that's why the line "CurrencyVar actual:=actual+CurrentFieldValue;" appeared in formula). So I also wanted to use this formula to acummulate "margenActual".
    In the inner section I reset the actual value (this value always go fine):
    WhilePrintingRecords;
    CurrencyVar actual:=0; 
    Before end of year I reset the margenActual value:
    WhilePrintingRecords;
    CurrencyVar margenActual:=0; 
    I've tried multiple combinations (using WhileReadingRecords instead WhilePrintingRecords) but data is incorrect or I cannot get rid of visualization page's problem....
    Any idea?
    Thanks a lot

    quote:
    Originally posted by:
    ntsiii
    If you were previously using <mxXML> you WERE using
    e4x.
    So remove that tag, create an instance variable of the same
    name, typed as xml, and in your result handler, do as VarioPegged
    suggests, though I would cast/convert to xml first:
    companies = XML(event.result);
    trace(companies.toXMLString()); to look at your xml
    var xlCompanies:XMLList = xmlCompanies..company; //all such
    expressions return XMLList, never XML
    trace(xmlCompanies.length()); //
    Tracy
    Ok so the ID of the mxXML was being interpreted as an E4X
    variable at compile time?
    I tried changing the name of the ID of the HTTPService call
    from "marketData" to "MDATA" and assigning the variable marketData
    to the result of the HTTPService query, which if I understand you
    correctly should basically make everything work as it was before,
    but it seems to be a problem.
    when I try to run it puts an exclamation point on this line
    <toolbox:TreeMap id="treeMap" width="1200" height="800"
    dataProvider="{marketData}"
    labelField="@cname" weightField="@amount"
    colorFunction="{itemToColor}"
    toolTipFunction="{itemToToolTip}"/>
    That code refers to a SWC file. Apparently it wants
    marketData to be a data provider. If I change the dataProvider
    reference above to "MDATA" (the ID of the HTTPService) the App
    compiles, but I get two errors at runtime:
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    ReferenceError: Error #1081: Property @age1 not found on
    mx.rpc.http.mxml.HTTPService and there is no default value.
    What should I change this reference to? It won't compile if I
    use the variable I made for the e4x results and it is reading
    gibberish if I have it read directly from the
    HTTPService....?

  • Hide/show functionality of a column in  interactive report

    Hi ,
    Is it possible to remove the hide functionality from a single column in an interactive report ?
    I have an interactive report with the first column being a check box. On the column name I have added the toggle checkall/uncheck all functionality.Now when the user clicks on the check all, the hide column option shows up.
    I do not want the users to be able to hide this column.I was able to remove the sort/filter/control break/aggregate/compute chart
    from unchecking each of these from the report attributes of the column.However I could not figure out how to remove the hide column popup that shows up when you click on the checkbox column name.
    Appreciate any response ...
    Thanks,
    Dippy

    Hi,
    I believe you will want to add a height specification to allow for multiple lines.  And you may want/need to specifiy how you want lines to wrap.
    Add (for example):
      height: 60px; 
      white-space: nowrap; 
      word-wrap: break-word;
    There are defaults and several options for white-space and word-wrap.  You may want to look them up and give them a try for comparison.
    Howard

Maybe you are looking for