Forum Discussion
XaviOV
Helper V
6 years agoFilter text 2 columns
Hi! I have a table with differents columns. I want to filter by data of column "Pregunta", for example "Fundidores" or "Filtro Emulgente", and with theese filter I want to save the data of the r...
- 6 years ago
XaviOV OK, the code I provided earlier seems like it is doing exactly what you are asking or else I am missing something. See attached PBIX file.
- 6 years ago
FilterColumn = VAR _id = SUMMARIZE ( FILTER ( 'Table', 'Table'[Pregunta] IN { "Fundidores", "Filtro Emulgente" } ), 'Table'[ID] ) VAR _result = IF ( 'Table'[ID] IN _id , "Show", "Hide" ) RETURN _resultThis should work.
Did I answer your question? Mark my post as a solution!
Appreciate with a kudos 🙂
Greg_Deckler
Community Champion
6 years agoPerhaps:
New Table =
VAR __IDs =
SELECTCOLUMNS(
FILTER('Table',[Pregunta] = "Fundidores" || [Pregunta] = "Filtro Emulgente"),
"ID",
[ID]
)
VAR __Table =
FILTER('Table','Table'[ID] IN __IDs)
RETURN
__Table