Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Marlon
Frequent Visitor

Ajuda com filtrar uma tabela com conteúdo de outra

Pessoal estou tendo dificuldades com filtragem de alguns dados.

 

Eu tenho a tabela "Dados" com a coluna "Responsavel" que contem vários nomes, porém uma linha pode conter vários nomes.

E também tenho a tabela "Pessoas" com a coluna "Nome" que contem apenas um nome por linha.

 

Gostaria de filtrar a Coluna "Responsavel" da tabela "Dados" com a coluna "Nome" da tabela pessoas para  quando eu escolher um nome aparece todas vezes que contém ele exemplo:

 

Coluna responsavel tem as linhas:

Jonathas, André

Jonathas, Dener, André

Jonathas

André, Dener

André

Dener, Jonathas

 

E digamos que quero filtrar por Jonathas, quero que mostre:

 

Jonathas, André

Jonathas, Dener, André

Jonathas

 

Dener, Jonathas

 

Que são onde esse nome aparece, como eu posso fazer?

 

Obrigado pela atenção

1 ACCEPTED SOLUTION
v-yuta-msft
Community Support
Community Support

@Marlon,

 

Create a measure using DAX below, than drag the measure and Responsible column to a same chart.

Filtered Result = IF(FIND(SELECTEDVALUE(People[Name]), MAX(Data[Responsible]), , BLANK()) <> BLANK(), "Yes", BLANK())

Capture.PNG 

 

Community Support Team _ Jimmy Tao

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

 

View solution in original post

1 REPLY 1
v-yuta-msft
Community Support
Community Support

@Marlon,

 

Create a measure using DAX below, than drag the measure and Responsible column to a same chart.

Filtered Result = IF(FIND(SELECTEDVALUE(People[Name]), MAX(Data[Responsible]), , BLANK()) <> BLANK(), "Yes", BLANK())

Capture.PNG 

 

Community Support Team _ Jimmy Tao

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

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.