Skip to main content
ExLibris
  • Subscribe by RSS
  • Ex Libris Knowledge Center

    Using Bins to group values together in Alma Analytics

    • Product: Alma

    Background

    Bins can be used in Alma Analytics to combine a set of column values into a single group. These bins are a user-friendly way of creating a "Case When" statement to replace a certain value with another.

    For example, one might want to report on the number of loans by Students versus Staff, but these patrons may have several different User Groups that need to be combined.

    In this example, an institution has several different User Groups for patrons:

    report_with_user_group.png

    We would like to combine these User Groups in order to distinguish between Staff and Students, like so:

    • Student: Graduate Student, Undergraduate Student, Part-time
    • Staff: Academic Staff, Faculty, Staff
    • Other: group any other User Groups together, like Alumni and Guest patrons

    Instructions

    1. On the Criteria tab, select the "User Group" column and click Edit Formula
    2. Click the Bins tab
      bins_tab_column_formula.png
    3. Click Add Bin
    4. Create a filter to select the "Student" values: User Group is equal to / is in Graduate Student;Undergraduate Student;Part-time
      bins_user_group_filter.png
    5. Click OK
    6. Enter the name of the Bin: Student
      bins_add_bin_name.png
    7. Click OK
    8. Repeat steps 2-6 to create a "Staff" bin for Academic Staff, Faculty, and Staff User Groups
    9. Click the checkbox for Create a bin for all other values
    10. Name this catch-all Bin: Other
    11. Click OK
    12. The final Bins should look like:
      bins_final.png
    13. Click OK to close the column formula interface
    14. Go to the Results tab
    15. The loans are now grouped according to our Bins:
      report_grouped_by_bins.png

    Additional Information

    Editing the Column Formula after creating the Bins shows the advanced "Case When" statement created by the Bins:

    case_when_statement.png

    By default this formula is not editable, as it corresponds to the selections made on the Bins tab.

    In order to edit this "Case When" statement manually, return to the Bins tab and click Clear All, then click Yes to retain the case statement.

    Other Resources

    For other resources to assist in creating Alma Analytics reports, please see our compilation here.

     


    • Article last edited: 01-Dec-2021
    • Was this article helpful?