Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

New table with corresponding columns

Hi all,   I have a table like this:   And I want a table like this:   In the left, we have that lines with "VENDIDO" status, and "ENTREGUE" in the right. Attention to column matchin...
  • Anonymous's avatar
    Anonymous
    7 years ago

    i GOT IT!

     

    With SELECTCOLUMNS table above, I hade created new columns using LOOKUPVALUE.

     

    'DVENDAS" is the main table.

     

    Data Entregue = LOOKUPVALUE('DVENDAS'[Data MD];
    'DVENDAS'[Bilhete];[Bilhete];
    'DVENDAS'[Passageiro];[Passageiro];
    'DVENDAS'[Data Servi.];[Data do serviço];
    'DVENDAS'[Serviço];[Serviço];
    'DVENDAS'[Status];"ENTREGUE")
    
    Agência Entregue = LOOKUPVALUE('DVENDAS'[Agência];
    'DVENDAS'[Bilhete];[Bilhete];
    'DVENDAS'[Passageiro];[Passageiro];
    'DVENDAS'[Data Servi.];[Data do serviço];
    'DVENDAS'[Serviço];[Serviço];
    'DVENDAS'[Status];"ENTREGUE")

     

    Thanks guys for support.