<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Converting glidefunction:datediff() Report Function to Platform Analytics in Community Central forum</title>
    <link>https://www.servicenow.com/community/community-central-forum/converting-glidefunction-datediff-report-function-to-platform/m-p/3282694#M3315</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm in the process of converting reports from the classic Reporting module to Platform Analytics (PA) and have run into issues with function fields that use glidefunction: logic — specifically for calculating durations.&lt;/P&gt;&lt;P&gt;In the Reporting module, I created a report function field (with associated report ranges) using this expression:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;glidefunction:datediff(coalesce(closed_at, now()), sys_created_on)&lt;/LI-CODE&gt;&lt;P&gt;This works well in reporting module reports and renders properly in Platform Analytics list and bar widgets — as long as the duration value is not used by a group-by. This duration function has been created in multiple tables and is used in a large number of reports. Ideally I'd like to minimize the amount of changes needed to convert it to Platform Analytics. I am trying to avoid building a physical field that would then be populated by a nightly job.&lt;/P&gt;&lt;P&gt;My questions are:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;What is the best (ideally with the least amount of rework) way to replicate a glidefunction&amp;nbsp;DATEDIFF&amp;nbsp;duration calculation in Platform Analytics?&lt;/LI&gt;&lt;LI&gt;Has anyone built a report in PA using calculated fields or scripted indicators that supports duration grouping and filtering (e.g., by duration buckets)?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Any insights, examples, or guidance is greatly appreciated.&amp;nbsp;Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Thu, 05 Jun 2025 21:32:36 GMT</pubDate>
    <dc:creator>bhutch</dc:creator>
    <dc:date>2025-06-05T21:32:36Z</dc:date>
    <item>
      <title>Converting glidefunction:datediff() Report Function to Platform Analytics</title>
      <link>https://www.servicenow.com/community/community-central-forum/converting-glidefunction-datediff-report-function-to-platform/m-p/3282694#M3315</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm in the process of converting reports from the classic Reporting module to Platform Analytics (PA) and have run into issues with function fields that use glidefunction: logic — specifically for calculating durations.&lt;/P&gt;&lt;P&gt;In the Reporting module, I created a report function field (with associated report ranges) using this expression:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;glidefunction:datediff(coalesce(closed_at, now()), sys_created_on)&lt;/LI-CODE&gt;&lt;P&gt;This works well in reporting module reports and renders properly in Platform Analytics list and bar widgets — as long as the duration value is not used by a group-by. This duration function has been created in multiple tables and is used in a large number of reports. Ideally I'd like to minimize the amount of changes needed to convert it to Platform Analytics. I am trying to avoid building a physical field that would then be populated by a nightly job.&lt;/P&gt;&lt;P&gt;My questions are:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;What is the best (ideally with the least amount of rework) way to replicate a glidefunction&amp;nbsp;DATEDIFF&amp;nbsp;duration calculation in Platform Analytics?&lt;/LI&gt;&lt;LI&gt;Has anyone built a report in PA using calculated fields or scripted indicators that supports duration grouping and filtering (e.g., by duration buckets)?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Any insights, examples, or guidance is greatly appreciated.&amp;nbsp;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 21:32:36 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/converting-glidefunction-datediff-report-function-to-platform/m-p/3282694#M3315</guid>
      <dc:creator>bhutch</dc:creator>
      <dc:date>2025-06-05T21:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: Converting glidefunction:datediff() Report Function to Platform Analytics</title>
      <link>https://www.servicenow.com/community/community-central-forum/converting-glidefunction-datediff-report-function-to-platform/m-p/3282946#M3318</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/686341"&gt;@bhutch&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To the best of my knowledge&amp;nbsp;&lt;SPAN&gt;you do&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;not&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;need to manually convert function fields that use&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;glidefunction:&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;syntax as part of your migration to Platform Analytics. The Migration Center is designed to handle these automatically. However, always validate your migrated reports to ensure all function fields and calculations are working as expected.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Maik&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 07:16:44 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/converting-glidefunction-datediff-report-function-to-platform/m-p/3282946#M3318</guid>
      <dc:creator>Maik Skoddow</dc:creator>
      <dc:date>2025-06-06T07:16:44Z</dc:date>
    </item>
  </channel>
</rss>

