Do you want to calculate the total value for all registers against on the OFICIAL_DE_PROMOTORIA_CHEFE, OFICIAL_DE_PROMOTORIA_I, ... columns?
Based on the needs that you mentioned, I agree with you, the LookUp function could not achieve your needs. I have made a test on my side, please try the following formula:
Sum(
Filter(
INTEGRANTES;
Cod_UA = ThisItem.Cod_UA
);
OFICIAL_DE_PROMOTORIA_CHEFE + OFICIAL_DE_PROMOTORIA_I + AUXILIAR_DE_PROMOTORIA_CHEFE + AUXILIAR_DE_PROMOTORIA_ENCARREGADO + AUXILIAR_DE_PROMOTORIA_I + AUXILIAR_DE_PROMOTORIA_II + AUXILIAR_DE_PROMOTORIA_III + ANALISTA_DE_PROMOTORIA_I + ANALISTA_DE_PROMOTORIA_II + ANALISTA_JURIDICO_DO_MP + ANALISTA_TECNICO_CIENTIFICO_DO_MP + 'ANALISTA_DE_PROMOTORIA_I_(SAUDE)' + DIRETOR_DE_AREA_DO_MP + DIRETOR_DE_DEPARTAMENTO_DO_MP + ASSESSOR_DE_DIRECAO_DO_MP + ASSESSOR_DE_GABINETE_DO_MP + ASSESSOR_DO_MP + ASSESSOR_ESPECIAL_DO_MP + ESTAGIARIOS_DE_GRADUACAO + ESTAGIARIOS_DE_NIVEL_MÉDIO + PROCURADOR_DE_JUSTICA + PROCURADOR_GERAL_DE_JUSTICA + PROMOTOR_DE_JUSTICA + PROMOTOR_DE_JUSTICA_SUBSTITUTO + SECRETARIO_DO_MP
)
If you just want to sum one Number column of all matching records with same Cod_UA value in your SP List, please consider try the following formula:
Sum(
Filter(
INTEGRANTES;
Cod_UA = ThisItem.Cod_UA
);
NumberColumn
)
Please try above solution, check if the issue is solved.
Regards,