Method Community

 

Grid filter: how to set a filter by comparing two columns

Last post 11-26-2015 4:44 PM by Method_Ben. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 11-26-2015 4:22 PM

    Grid filter: how to set a filter by comparing two columns

    Hi,

    I have a grid with several columns. Is it possible to add a filter to this grid, which compare two columns of this grid? For example, I have two columns(Col_A, and Col_B), can I set a filter like (Col_A > Col_B)? Thanks.


    Alex

    Chief Architect
    Yi Systems, Inc.
    alexhuang@yisystems.com
    www.yisystems.com blogs.yisystems.com
    Software.Web.Cloud.IT
  • 11-26-2015 4:44 PM In reply to

    Re: Grid filter: how to set a filter by comparing two columns

    Hi Alex,

    There isnt a way to set a grid filter to compare the values in two columns.

    If you did need to set a grid filter where Column A > Column B  for example, you could create a new integer field, Column C, on this table, and populate this field using a loop through table action which performs some basic calculation like Column A - Column B. This would leave you with either a Positive Integer (ie Column A > Column B) or a negative integer (ie Column B > Column A) . Finally, you would then set the Filter to display only values where your created Column C  is greater than 0.

    Ill do some more testing and see if I can come up with anything else. 

    Thanks Alex.

    Regards,

    Ben

    Ben Hargreaves
    Senior Support Specialist
    Method:CRM
    b.hargreaves@method.me
    Toll Free: 1.888.925.6238
    Local & Overseas: 416.847.0400
    Fax: 416.640.6027
Page 1 of 1 (2 items)