I am trying to create a Fetch XML report to view case resolution. However, when I use the following fetch XML to fetch the report it shows to rows with same case number. Is it possible to get only single and latest row using fetch xml?
<fetch distinct="true" >
<entity name="incident" >
<attribute name="ssg_sladate" />
<attribute name="title" />
<attribute name="caseorigincode" />
<attribute name="ticketnumber" />
<attribute name="statecode" />
<link-entity name="incidentresolution" from="incidentid" to="incidentid" link-type="outer" visible="true" >
<attribute name="activityid" />
<attribute name="actualend" />
</link-entity>
<filter type="and" >
<condition attribute="ticketnumber" operator="eq" value="SBS-03474-H2Z1" />
</filter>
</entity>
</fetch>