Help to show dropdown list

Friends,

New doubt about dropdown list, between 2 related tables.

Have table DB_PATRIMÔNIO (patrimony) 

deltai_0-1701445629097.png

 

and table DB_EMPRESTIMO (loan)

deltai_1-1701445651024.png

 

That last have field [ID_PATRIMONIO] is related.

I want drowpdown use this conditions to show information:

1- DB_PATRIMONIO[CONDICAO]="EM USO"
2- if DB_EMPRESTIMO[ID_PATRIMONIO] (related field) not exist in this table, what patrimony can only be borrowed once
3- DB_EMPRESTIMO[SITUAÇÃO]<>"ATIVO"

After several attempt i do it just like this, filtering only table DB_PATRIMONIO and no sucess to filter together table DB_EMPRESTIMOS.

This way it partially works: FILTER("DB_PATRIMONIO", [CONDICAO]="EM USO")

But I want something like this:

FILTER("DB_PATRIMONIO",
              AND(
                         ([CONDICAO]="EM USO"),
                         (SITUAÇÃO<>"ATIVO"),
                         ([ID_PATRIMONIO] <> [ID_PATRIMONIO].[ID_PATRIMONIO])
              )
    )

0 2 122
2 REPLIES 2

Hy friend´s

Anybody to help me?

@AleksiAlkio@Suvrutt_Gurjar@Steve 

....may you help me about?

Tks

 

Top Labels in this Space