Calculated / Formula field / Virtual column in report. (advanced pack)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rinorway
    Senior Member
    • Feb 2016
    • 179

    Calculated / Formula field / Virtual column in report. (advanced pack)

    I have a text field

    Possible contents are A , B and AB

    I want to count all records that have A, and all that have B, so I would like to add
    - a virtual field A, that is 1 if the string contains an A
    - a virtual field B, that is 1 if the string contains an B



    Click image for larger version  Name:	image.png Views:	0 Size:	3.1 KB ID:	101835

    ```
    $A = ifThenElse(
    string\contains('$field', 'A') // will return true
    1, // return this value
    0 // otherwise, this
    )

    $B = ifThenElse(
    string\contains('$field', 'B') // will return true
    1, // return this value
    0 // otherwise, this
    )
    ```

    In this way I can use those in a report (and export)

    What workarounds do we have?
    Starts
    01-22-2024
    Ends
    01-22-2024
    Last edited by rinorway; 01-22-2024, 01:53 PM.
  • yuri
    Member
    • Mar 2014
    • 8552

    #2
    In the upcoming Advanced Pack release it will be possible to define complex expressions in Grid report columns. It's already implemented, we yet need to test before the release.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • rinorway
      Senior Member
      • Feb 2016
      • 179

      #3
      Great, we will be patient

      Comment

      Working...