• DevClub
  • PartnerClub
  • Support
  • Marketplace
  • sugarcrm.com
SugarClub
SugarClub
  • User
  • Site
  • Search
  • User
  • Groups & Discussions
    Groups & Discussions
    • Product Forums
      Product-focused Q&A, discussions, best practices, fixes, and help
      Product Forums
      • Sugar Market
      • Sugar Sell & Enterprise
      • Sugar Serve
      • sales-i
    • User Groups
      Professional, Industry, Language
    • Get Involved
      Learn how to become a Raving Fan
    • Social Club
      Live, interactive, virtual meetups with other Sugar customers and Sugar’s Subject Matter experts!
    • Leadership Lounge
      Network with fellow organizational leaders, ask questions, and share insights
    • Developers
      Visit DevClub, the SugarClub group for Sugar Developers
      Developers
      • DevClub
      • Mobile Developers
      • Developer Builds
        Supplemental access level required. Inquiries: developers@sugarcrm.com
    • Additional Groups (Access Required)
      Groups that require special access will be displayed here. Contact sugarclub@sugarcrm.com for assistance. Click here to see all groups
      Additional Groups (Access Required)
      • SugarCloud Platform
  • Product Information
    Product Information
    • Release Central
      Find release-specific content to prepare for your next Sugar update
    • Documentation & Resources
      Looking to expand your Sugar knowledge? Explore our in-depth documentation and other helpful resources!
    • Product Update Blogs
      Updates about each Sugar product
    • Customer Stories »
      Case Studies by SugarCRM
  • Training & Certification
    Training & Certification
    • Training & Certification Home
      Live & On-Demand classes, Quick Videos, Sugar Certifications, and more!
    • Quick Videos
      Short videos about using Sugar
    • Event Recordings
      Recordings from SugarU Live Webinars and Sugar Market Academy
    • My SugarU Dashboard »
    • SugarU News & Updates
  • Adoption
    Adoption
    • Grow Adoption Framework
      Get started on your adoption journey and review the adoption resources from SugarCRM
  • Calendar
  • News
    News
    • Sugar News
    • SugarCRM.com News »
    • Dev Blog
    • SugarCRM Marketplace Blog
  • Help
    Help
    • Welcome to Sugar!
      New to Sugar? Get started here!
    • SugarClub Help & Instructions
      Learn more about SugarClub and find answers to questions about this site
    • New to SugarClub?
      Start your community journey here
    • Technical Support
      Sugar's support resources
      Technical Support
      • Case Portal »
        Access the SugarCRM Case Portal
      • Working with Sugar Support »
        Find out more about engaging with the SugarCRM Support team
      • SugarCloud Information
        Find information about SugarCloud service updates and site status. Contact sugarclub@sugarcrm.com to request access
  • More from Sugar
    More from Sugar
    • DevClub
    • PartnerClub
    • Support
    • SugarOutfitters Marketplace
    • sugarcrm.com
Sugar Documentation & Resources
Sugar Documentation & Resources
Quick Tips Custom calculated fields in Sugar Discover
Click here to join this group and curate your SugarClub experience.
  • Welcome!
  • +Sugar Market
  • +Sugar Sell, Serve, and Enterprise
  • +Sugar Connect
  • +Sugar Mobile App
  • -Sugar Discover
    • Demystifying Field Types in Sugar Discover
    • Custom calculated fields in Sugar Discover
  • +Sugar Self-Service Center
  • +General
  • Using Hint to Add Avatars and Logos to Records
  • SugarConnected sessions available on-demand
  • Staying up-to-date on Sugar's release updates
  • Setting Your Time Zone in SugarClub
  • Add Your Metric Field Last in Sugar Discover
  • Sugar Glossary
  • Triblio - What is it? It's Awesome

You are currently reviewing an older revision of this page.

  • History View current version

Custom calculated fields in Sugar Discover

In Sugar Discover, users can create calculated fields either at the report level or the dataset level. Report-level calculated fields are specific to the report they are created in, while dataset-level calculated fields can be reused across any report using the same dataset. For now, we'll focus on report-level fields.

To create a report-level calculated field, click the plus icon to the top right of the Fields list.
disocver_calc_plus
While creating a calculated field, users must provide a unique name, define the calculation using functions, operators, and field references (which are fields enclosed in square brackets), and optionally add a description. As you write the calculation, you will see whether your calculation is valid by the text in the lower left corner of the field definition box.
Discover_calc_valid
The calculation’s format can be customized using the "Format Type" dropdown, with options varying based on the data type, such as currency. Additionally, the "Default Aggregation" dropdown controls how Discover aggregates results in reports. Users can override the default aggregation when adding the field to a report’s shelf using the Default Aggregation dropdown. After defining the calculated field, users may click "Apply" to save it, or "Cancel" to discard changes. The newly created calculated field will appear in the Fields list.

For help with syntax, examples of calculated fields, and to view a list of available functions and operators, please see our Sugar Discover Function Reference.