I have a query about not respecting the selection of a field, which although I add in the set analysis the condition not working, the field is the [Material EM], but when I remove field from the aggr already works correctly.
=
sum({$<[Desc Material EM]=,[Material EM]=>}MSEG.Importe_SOLES)
*
avg(
{$<[Desc Material EM]=,[Material EM]=>}
AGGR(
fabs(sum({$<[Tipo Movimiento]={'Salida'},[Almacén EM] ={'*'}-{''},[Desc Material EM]=,[Material EM]=>}MSEG.Cantidad_MENGE))