<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://sugarclub.sugarai.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Custom calculated fields in Sugar Discover</title><link>https://sugarclub.sugarai.com/docs_and_resources/w/tip-of-the-week/992/custom-calculated-fields-in-sugar-discover</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>Custom calculated fields in Sugar Discover</title><link>https://sugarclub.sugarai.com/docs_and_resources/w/tip-of-the-week/992/custom-calculated-fields-in-sugar-discover</link><pubDate>Wed, 22 Jan 2025 13:23:38 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:fb7d69b3-403e-4c3d-9d50-a628a16d9192</guid><dc:creator>Dalton Kocik</dc:creator><comments>https://sugarclub.sugarai.com/docs_and_resources/w/tip-of-the-week/992/custom-calculated-fields-in-sugar-discover#comments</comments><description>Current Revision posted to Quick Tips by Dalton Kocik on 1/22/2025 1:23:38 PM&lt;br /&gt;
&lt;p&gt;&lt;!-- x-tinymce/html --&gt;&lt;/p&gt;
&lt;p&gt;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&amp;#39;ll focus on report-level fields.&lt;/p&gt;
&lt;p&gt;To create a report-level calculated field, click the plus icon to the top right of the Fields list.&lt;br /&gt;&lt;img style="max-height:514px;max-width:254px;" alt="disocver_calc_plus" src="/resized-image/__size/508x1028/__key/communityserver-wikis-components-files/00-00-00-00-35/disocver_5F00_calc_5F00_plus.png" /&gt;&lt;br /&gt;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.&lt;br /&gt;&lt;img style="max-height:485px;max-width:806px;" alt="Discover_calc_valid" src="/resized-image/__size/1612x970/__key/communityserver-wikis-components-files/00-00-00-00-35/Discover_5F00_calc_5F00_valid.png" /&gt;&lt;br /&gt;The calculation&amp;rsquo;s format can be customized using the &amp;quot;Format Type&amp;quot; dropdown, with options varying based on the data type, such as currency. Additionally, the &amp;quot;Default Aggregation&amp;quot; dropdown controls how Discover aggregates results in reports. Users can override the default aggregation when adding the field to a report&amp;rsquo;s shelf using the Default Aggregation dropdown. After defining the calculated field, users may click &amp;quot;Apply&amp;quot; to save it, or &amp;quot;Cancel&amp;quot; to discard changes. The newly created calculated field will appear in the Fields list.&lt;/p&gt;
&lt;p&gt;For help with syntax, examples of calculated fields, and to view a list of available functions and operators, please see our &lt;a title="Sugar Discover Function Reference" href="https://support.sugarcrm.com/documentation/discover/sugar_discover_functions/" rel="noopener noreferrer" target="_blank"&gt;Sugar Discover Function Reference&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>Custom calculated fields in Sugar Discover</title><link>https://sugarclub.sugarai.com/docs_and_resources/w/tip-of-the-week/992/custom-calculated-fields-in-sugar-discover/revision/1</link><pubDate>Tue, 21 Jan 2025 16:12:44 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:fb7d69b3-403e-4c3d-9d50-a628a16d9192</guid><dc:creator>Dalton Kocik</dc:creator><comments>https://sugarclub.sugarai.com/docs_and_resources/w/tip-of-the-week/992/custom-calculated-fields-in-sugar-discover#comments</comments><description>Revision 1 posted to Quick Tips by Dalton Kocik on 1/21/2025 4:12:44 PM&lt;br /&gt;
&lt;p&gt;&lt;!-- x-tinymce/html --&gt;&lt;/p&gt;
&lt;p&gt;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&amp;#39;ll focus on report-level fields.&lt;/p&gt;
&lt;p&gt;To create a report-level calculated field, click the plus icon to the top right of the Fields list.&lt;br /&gt;&lt;img style="max-height:514px;max-width:254px;" alt="disocver_calc_plus" src="/resized-image/__size/508x1028/__key/communityserver-wikis-components-files/00-00-00-00-35/disocver_5F00_calc_5F00_plus.png" /&gt;&lt;br /&gt;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.&lt;br /&gt;&lt;img style="max-height:485px;max-width:806px;" alt="Discover_calc_valid" src="/resized-image/__size/1612x970/__key/communityserver-wikis-components-files/00-00-00-00-35/Discover_5F00_calc_5F00_valid.png" /&gt;&lt;br /&gt;The calculation&amp;rsquo;s format can be customized using the &amp;quot;Format Type&amp;quot; dropdown, with options varying based on the data type, such as currency. Additionally, the &amp;quot;Default Aggregation&amp;quot; dropdown controls how Discover aggregates results in reports. Users can override the default aggregation when adding the field to a report&amp;rsquo;s shelf using the Default Aggregation dropdown. After defining the calculated field, users may click &amp;quot;Apply&amp;quot; to save it, or &amp;quot;Cancel&amp;quot; to discard changes. The newly created calculated field will appear in the Fields list.&lt;/p&gt;
&lt;p&gt;For help with syntax, examples of calculated fields, and to view a list of available functions and operators, please see our &lt;a title="Sugar Discover Function Reference" href="/documentation/discover/sugar_discover_functions/" rel="noopener noreferrer" target="_blank"&gt;Sugar Discover Function Reference&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item></channel></rss>