Skip to main content
ExLibris

Knowledge Assistant

BETA
 
  • Subscribe by RSS
  • Back
    Esploro

     

    Ex Libris Knowledge Center
    1. Search site
      Go back to previous article
      1. Sign in
        • Sign in
        • Forgot password
    1. Home
    2. Esploro
    3. Product Documentation
    4. Esploro Online Help (English)
    5. Esploro Analytics
    6. Working with Esploro Analytics
    7. Useful Custom Formulas for Esploro Analytics

    Useful Custom Formulas for Esploro Analytics

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    1. Background
    2. Instructions
    3. Example formulas
    • Product: Esploro

    Background

    Esploro Analytics (aka Oracle Business Intelligence, or OBI) is a general purpose reporting and business intelligence tool, which does not automatically "understand" data structures common in the academic world (such as ISBN/ISSNs). 

    The custom formulas below have helped users manipulate data available in Analytics that was not originally formatted in a way that was useful for their reporting needs. These formulas can be easily changed to work for other types of fields or data.

    Two of the most commonly used functions are regexp_substr and regexp_replace. One thing to note about regexp_substr, regexp_replace and other Evaluate functions is that sometimes you must use two single quote characters instead of a double quote to avoid "syntax errors" in OBI.

    Instructions

    To add or edit a formula in an Analytics report:

    1. Open the 'Criteria' tab of your report. Select the configuration menu of the field you would like to change, select 'Edit Formula'.

    Edit formula.png

    2. In the 'Column Formula' text box, replace the current formula with your custom formula and click 'OK'.

    Column formula.png

     

    Example formulas

    Count the occurrences of a pattern (in this case the number of semicolons, which can be used to confirm how many values appear in a multi-value row):

    Evaluate('regexp_count(%1,''\;'')',"Researcher Details"."Honors")

     

    Retrieve the first occurrence of a string (change the last 1 to 2, 3, etc. for the second, third, etc. occurrence):

    Evaluate('regexp_substr( %1, ''[^\;]+'', 1,1)', "Researcher Details"."Honors")

     

    Retrieve the second occurrence of a string (change the last 1 to 2, 3, etc. for the second, third, etc. occurrence):

    Evaluate('regexp_substr( %1, ''[^\;]+'', 1,2)', "Researcher Details"."Honors")

     

    Retrieve the last occurrence of a string (in this example the delimiter is ; , the ‘$’ character in regexp means the end of the string, the ‘^’ is beginning ):

    Evaluate('regexp_substr( %1, ''[^\;]+$'', 1,1)', "Researcher Details"."Honors")

     

    Remove duplicate ISSNs from the ISSN field:

    ifnull(evaluate( 'regexp_replace( %1, ''([^\;]+)(\;[ ]*\1)+'')',"Asset Identifiers"."ISSN"),  Evaluate('regexp_substr( %1, ''[^\;]+'', 1,1)', "Asset Identifiers"."ISSN"))

     

    Combine two fields into a single field using a delimiter (in this example - ):

    "Researcher Details"."Researcher Name" || ' - ' ||  "Researcher Details"."Current Internal Organization Affiliations Names List"


     


    • Article last edited: 20-Apr-2020
    View article in the Exlibris Knowledge Center
    1. Back to top
      • Common Analytics Procedures
      • Working with Analytics Objects
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Content Type
      Documentation
      Language
      English
      Product
      Rosetta
    2. Tags
      This page has no tags.
    1. © Copyright 2025 Ex Libris Knowledge Center
    2. Powered by CXone Expert ®
    • Term of Use
    • Privacy Policy
    • Contact Us
    2025 Ex Libris. All rights reserved