Forum Discussion

dmessias's avatar
dmessias
Frequent Visitor
3 years ago
Solved

Filter table by string from another table

Hello, my friends. Tenho a seguinte situação. Na tabela 1 tenho uma coluna com números de contrato (1000, 1001, 1002, 1003, n) Na tabela 2 tenho uma tabela de fornecedores que podem atender vá...
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi dmessias ,

     

    For the single selection in the slicer, you can create a measure.

    Measure = IF(ISFILTERED('TABELA 2'[Contratos]),IF(CONTAINSSTRING(MAX('TABELA 2'[Contratos]),SELECTEDVALUE('TABELA 1'[Contratos]))=TRUE(),1),1)

    Put the measure into the filters of the table visual, set up show items when the value is 1. 

    Below is the result.

     

                                                                                                                                                             

    Best Regards,

    Stephen Tao

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.