Option to Filter all

Hello Guys, I created this filter to filter by year and supplier, and I want it to show me the option to filter all suppliers but it only get one of each, how do I do it? thanks

Row FIlter Condition:

ISNOTBLANK(
FILTER(“Filtro”,
AND(
IN([_THISROW].[ANO], Filtro[Ano]),
IN([_THISROW].[MES], Filtro[Mês]),
IN([_THISROW].[FORNECEDOR], Filtro[Fornecedor]))
)
)

Change the ENUM formula in Filtro[Fornecedor] to be

LIST("All")+Table[Column]

then change the slice formula to be

ISNOTBLANK(
   FILTER("Filtro",
      AND(
         IN([_THISROW].[ANO], Filtro[Ano]),
         IN([_THISROW].[MES], Filtro[Mês]),
      OR(
         Filtro[Fornecedor]="ALL",
         IN([_THISROW].[FORNECEDOR], Filtro[Fornecedor]))
      )
   )
)

Simon, 1minManager.com

1 Like

Error:

Cannot compare List with Text in (Filtro[Fornecedor] = “ALL”)

Replace

Filtro[Fornecedor]=“ALL”,

with

IN(“All”,Filtro[Fornecedor]),

1 Like

turned a button :disappointed_face:

this solution solves it but I will have to create another column, can I choose all or one of each in the same column?

Collumns:
SELECT(Dados[FORNECEDOR], TRUE) + LIST(“All”)

Slice:
AND(
IN([_THISROW].[ANO], Filtro[Ano]),
IN([_THISROW].[MES], Filtro[Mês]),
OR(
IN(“All”, Filtro[Fornecedor]),
IN([_THISROW].[FORNECEDOR], Filtro[Fornecedor])
)
)

:blush: