I have the following XML to generate a report. new_item has multiple entries of 'open balance' as well as other data, due to the way the data is set.
each entry has a new_clientcleared date. how can I modify this to only show the oldest ( ie first open balance) yet still show the remainder of the data
<fetch distinct="false" no-lock="false" mapping="logical" >
<entity name="new_dbfmlivedata" enableprefiltering="1" prefilterparametername="CRM_Filterednew_dbfmlivedata" >
<attribute name="new_item" alias="new_item" />
<attribute name="new_clientcleareddate" alias="new_clientcleareddate" />
<attribute name="new_value" alias="new_value" />
<attribute name="new_processed" alias="new_processed" />
<attribute name="new_dbfmlivedataid" />
<attribute name="new_new_fileserial" />
<attribute name="new_value_base" />
<order attribute="new_clientcleareddate" descending="false" />
<link-entity name="transactioncurrency" to="transactioncurrencyid" from="transactioncurrencyid" link-type="outer" alias="LE_effb0c2675bc4f2b81d50e4cada77891" >
<attribute name="currencysymbol" alias="LE_effb0c2675bc4f2b81d50e4cada77891_currencysymbol" />
<attribute name="currencyprecision" alias="LE_effb0c2675bc4f2b81d50e4cada77891_currencyprecision" />
</link-entity>
</entity>
</fetch>