Aggregate Max Display column

4 posts, 0 answers
  1. Bill
    Bill avatar
    28 posts
    Member since:
    Feb 2007

    Posted 06 Mar 2013 Link to this post

    Is there an easy way to accomplish the following for using the max function but display the column where the max value is?

    Column 1    Column 2
    A                100    
    B                500    
    C                200
                      Total:     800
                      Highest: B(500)

    Thanks
     
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 06 Mar 2013 Link to this post

    Hello,

    I am not sure that I understand your requirement. The result for the MaxFunction will be aligned with the column the Aggregate funtions is defined for. Would you please clarify what does the "display the column" mean?

    Regards,
    Didie
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. Bill
    Bill avatar
    28 posts
    Member since:
    Feb 2007

    Posted 06 Mar 2013 Link to this post

    Thanks for your response.  Sorry for not explaining it very well.

    In my example the max value from column 2 is 500.  In the footer i want to display not only the max value but also what is the value from column 1 where the max occured.  So I want to display the max value from column 2 and the corresponding value from column 1 in the footer of column 2.
  4. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 07 Mar 2013 Link to this post

    Hello,

    Thank you for clarifying.

    I am afraid that this would not be possible to be shown in the footer, as the AggragateResults does not contain information about the entire data item, but only about the SourceField of the AggregateFunction. 

    Regards,
    Didie
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top