Skip to main content
max_hinze
Contributor ⭐️⭐️
Sep 21, 2016 6:48 PM UTC

Report builder: MIN & MAX aggregation for date fields

Hej  Gainsight community,

I am surprised that I cannot us a MIN or MAX aggregation on date fields when using the report builder. 

Maybe I am just unable to find out how it actually works, or no one else needs such a aggregation on data fields when building reports & dashboards. But I would really appreciate to have such an option.

Please, dear GainSight peeps let me know if there is a work around or, in case this is really not possible, if you have planed to add this function.

Best regards,
Max

    15 replies

    lila_meyer
    Gainsight Employee ⭐️⭐️⭐️
    Oct 10, 2016 5:04 PM UTC
    Hi Max,

    It looks like Max/Min is available on some date fields in the report builder, but not all. I've tagged our product manager for more information.
    Translate
    Lila Krutel, Dir. Global Education Services
    heather_landgraf
    Contributor ⭐️⭐️⭐️⭐️⭐️
    Feb 15, 2018 6:23 PM UTC
    I need this too.  I need to build a report on a specific set of CTAs (recurring) and the MAX close date to see the last time a CTA of a certain type was closed.  I cannot seem to find a way to do that in reporting.  It won't let me do MAX close date.  
    Translate
    cmultanen
    Helper ⭐️
    Jul 13, 2018 2:29 PM UTC
    Is there any update on which fields/objects MIN and MAX aggregation are available for, if at all? I'd like to create a CSTask report for the current open task in a playbook by MIN due date. This would really help our managers know where their team members are in a playbook.
    Translate
    matthew_lind
    VIP ⭐️⭐️⭐️⭐️⭐️
    Aug 9, 2018 3:57 PM UTC
    I was just in search of this myself, and surprised I couldn't use MAX/MIN on date fields. My use case is to identify the most recent touch to a customer. I promised this to a member of management, and now I'm having to backtrack.

    My observation (untested, and based on a very small number of spot-checks) is that you can use MIN/MAX on date fields residing in MDA objects, but cannot use MIN/MAX on date fields in SFDC objects. That makes MIN/MAX unavailable for Customer Info, Account and CTA objects.

    I suppose the work-around is to write a "Load to MDA" Rule to shuttle the SFDC date-based data to the MDA, but what a hassle.
    Translate
    Making people their best....currently disguised as a CS Ops Architect. How can I contribute to your success?
    jeremy_curry
    Helper ⭐️⭐️
    Feb 12, 2019 7:57 PM UTC
    I'm guessing as Gainsight moves toward the NXT model, requests such as this won't get any more traction. Bummer as this would've been a great feature.

    Translate
    rakesh
    Gainsight Employee ⭐️
    Lets put your data to work!
    Feb 13, 2019 3:50 AM UTC
    Hi Jeremy,

    We not only welcome but love the feedback that our customers provide on the community. I assure you that we actively consider this feedback for the product roadmap and prioritization.

    Our overall move towards NXT does not mean that we will not prioritize providing robust salesforce integrations. This particular problem arises from a salesforce limitation with Custom Fiscal Year - where salesforce does not provide us aggregation functions on date fields. Its quite hard for us to productize the Salesforce queries (SOQL) for all the scenarios. Let me review with the team to see if we can provide an acceptable solution for this problem.

    Translate
    jeremy_curry
    Helper ⭐️⭐️
    Mar 5, 2019 3:45 PM UTC
    Hi Rakesh,

    I really appreciate your feedback!

    The problem here is that, as admins, ee have an inconsistent experience across fields that seem to be of the same type (even as Lila said, this functionality is available on certain date fields). Then, Lila says that a PM will address this topic and then it goes dormant for 3 years from the Gainsight side. This is why it feels that basic reporting capabilities are being passed over for bigger development on a new platform.

    Translate
    spencer_engel
    Expert ⭐️
    May 29, 2019 2:23 PM UTC
    Any update on where this is on the roadmap?

    Translate
    rakesh
    Gainsight Employee ⭐️
    Lets put your data to work!
    May 30, 2019 1:33 PM UTC
    Min and Max Aggregations on date fields for reports on SFDC data is not supported in SOQL.

    Translate
    sierra_evans
    Contributor ⭐️⭐️⭐️⭐️⭐️
    Aug 5, 2019 3:30 PM UTC
    This is our use case as well. I need to know max due date of CTA records by account. If the min/max functionality is an issue with Salesforce date fields, why wouldn't the aggregation be available with CTA (Gainsight object) date fields?

    Translate