https://d365hub.com/Posts/Details/d3864d00-2496-4981-854d-53d2bfb893f6/use-of-aggregate-groupby-in-fetchxml-query