Method Community

 

Simple Formula Not Working

Last post 06-29-2012 5:10 PM by CDS_Josh. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 06-28-2012 4:14 PM

    Simple Formula Not Working

    I am having nightmares with these functions in the Report Designer.

    Here is a simple formula that is not working and I cannot figure out why:

    Iif(([CallReport.ComplaintCode] = 'CA' and [CallReport.DateReceived] >= AddDays(Today(),-30)),  1, 0)

    Can someone help me out with this.  I have been designing reports for almost 15 years now and have never seen so many inconsistencies with a report designer.  Sometimes it works, and sometimes it doesn't.  And I cannot figure out why.

    It could be me, but this is a very basic formula I have here!!

    -Josh

  • 06-28-2012 4:20 PM In reply to

    Re: Simple Formula Not Working

    Here is an example of what I am talking about (The values with the arrows pointing to them should be a 1 because both criteria are met)

     

     

  • 06-29-2012 12:39 PM In reply to

    Re: Simple Formula Not Working

    @CDS_Josh

    The fomula looks fine and I built a similiar conditional statement and it is working for me on a couple of test reports.

    One thing I always recommend is when actually testing the reports design a simple screen that actually generates the report versus just looking at the results in report designer.

    Are you actually generated it versus just previewing it? When previewing, it only displays the first few records of the date.

    Please let me know if I can be of further assistance.

    Ted Le
    Customization Solution Specialist
    Method Integration
    Local: 416.847.0400
    Toll Free: 1.888.925.6238
    Fax: 416.640.6027
    E-mail: t.le@methodintegration.com
    Website: http://www.methodintegration.com
  • 06-29-2012 5:10 PM In reply to

    Re: Simple Formula Not Working

    I only use the generate report function to test my reports.  I find the preview screen to be extremely buggy and will not show any results at times, even though a generate report with a wide open filter range will show hundreds.  I really wish Method would spend more time working with this report designer and work out all the kinks.  Its a great tool when it works.


    I managed to get my desired results through Excel using an API call.

    Thanks anyways!!

Page 1 of 1 (4 items)