Hi Monica. Using the <unit> command I was able to incorporate entity and occurrence metadata into object reports. But the code to sort the results or limit it to only bring the last record is not working (Is very important for the project that this query works well).. I tried several lines but had no success with any of them. I copy the code for your reference, can you help me identify where is the error?
<unit
relativeTo="ca_occurrences"
delimiter="<br>"
sort="ca_occurrences.object_valuation.object_valuation_ammount"
sortDirection="ASC"
limit="1">
ca_occurrences.valuation_date =
ca_occurrences.object_valuation.object_valuation_ammount
ca_occurrences.object_valuation.object_valuation_currency
</unit>
11 Diciembre 2024 = 1.700.000 EUR
6 Junio 2024 = 1.500.456 EUR
25 Noviembre 2018 = 2.000.000 USD
13 Agosto 2024 = 325 USD