Report expression

2 posts, 1 answers
  1. Mac
    Mac avatar
    36 posts
    Member since:
    Nov 2006

    Posted 23 Apr 2008 Link to this post


    struggling to get a textbox expression to work, can anyone point me in the right direction?

    Getting: #ERROR# Unable to cast object of type 'BinaryFunc' to type 'UnaryFunc'.

    From expression = ((Fields.Total - Fields.Included) / Fields.Total) * 100

  2. Answer
    Svetoslav avatar
    649 posts

    Posted 24 Apr 2008 Link to this post

    Hello Mac,

    To my greatest regret it seems that we have introduced this problem with the Q1 2008 release. It is already logged in our bug tracking system and will be fixed in the upcoming service pack due in a couple of weeks.

    Fortunately there is an easy way to workaround this problem in your specific case. This expression should produce the same result:

    =100 - Fields.Included * 100/Fields.Total 

    In case the things are more complicated you still can use an user defined function to perform the calculations.

    Please accept our apologies for the temporary inconvenience. I have updated your account with some Telerik points.

    Best wishes,
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. DevCraft R3 2016 release webinar banner
Back to Top