Filtro de Búsqueda

Estoy intentando que el filtro de búsqueda pueda ser usado que múltiples usuarios, pero puedan utilizar el mismo filtro de búsqueda de forma independiente.
Por ejemplo el Ususrio1 y el Usuario2 puedan realizar busquedas diferentes sobre los mismos datos

En el slice de filtro tiene la siguiente condicion

AND(
IF(
ISNOTBLANK(FiltradoDashboard[Desde]),
[Fecha] >= INDEX(FiltradoDashboard[Desde], 1),
TRUE()
),
IF(
ISNOTBLANK(FiltradoDashboard[Hasta]),
[Fecha] <= INDEX(FiltradoDashboard[Hasta], 1),
TRUE()
),
IF(
ISNOTBLANK(FiltradoDashboard[Producto]),
[Producto] = INDEX(FiltradoDashboard[Producto], 1),
TRUE()
),
IF(
ISNOTBLANK(FiltradoDashboard[Estado]),
[Estado] = INDEX(FiltradoDashboard[Estado], 1),
TRUE()
),
IF(
ISNOTBLANK(FiltradoDashboard[Vendedor]),
[Vendedor] = INDEX(FiltradoDashboard[Vendedor], 1),
TRUE()
),
IF(
ISNOTBLANK(FiltradoDashboard[Comprador]),
[Comprador] = INDEX(FiltradoDashboard[Comprador], 1),
TRUE()
),
TRUE()
)
)

Pero no se donde validar la forma independiente de cada usuario.
Tengo una tabla usuario tambien con email_usuario, por si sirve el dato.
Gracias por la ayuda
Sebas

Could you update what is “FiltradoDashboard” ? Is it a single row table with the various columns that store the values for various filtering requirements of the data table ? You then use those values in the filter expression of the slice?

Buen día
Si, correcto, disculpas por mi información incompleta.

Pensaba que al tener los usuarios diferenciados por su correo accionaban de forma independiente en los cortes, buscando información de una tabla.

Mirando un video de otra persona, sugerimos utilizar un “set_setting…”

Agradezco como siempre la pronta respuesta y ayuda.
Saludos
Sebas

Thank you.

Since you already have a Users table, you could move the columns from the “FiltradoDashboard” table to the Users table. So you could add columns such as [Desde] , [Hasta] , [Producto] … and [Comprador] to the Users table.

Then you could use the Current User system described in the tip below.

Current User (Slice) | How to conform your app a… - Google Cloud Community

Then the slice filter expression could be something like

AND(
IF(
ISNOTBLANK(Current_User[Desde]),
[Fecha] >= INDEX(Current_User[Desde], 1),
TRUE()
),
IF(
ISNOTBLANK(Current_User[Hasta]),
[Fecha] <= INDEX(Current_User[Hasta], 1),
TRUE()
),
IF(
ISNOTBLANK(Current_User[Producto]),
[Producto] = INDEX(Current_User[Producto], 1),
TRUE()
),
IF(
ISNOTBLANK(Current_User[Estado]),
[Estado] = INDEX(Current_User[Estado], 1),
TRUE()
),
IF(
ISNOTBLANK(Current_User[Vendedor]),
[Vendedor] = INDEX(Current_User[Vendedor], 1),
TRUE()
),
IF(
ISNOTBLANK(Current_User[Comprador]),
[Comprador] = INDEX(Current_User[Comprador], 1),
TRUE()
),
TRUE()
)
)

Here Current_User is a slice on the Users table with an expression something like [Email]=USEREMAIL()

@MultiTech has nicely explained the setup in the iconic tip.

1 Like

Gracias por darme esta alternativa, voy a trabajarla y si necesito ayuda avisaré.
disculpas por demorar mi respuesta
Saludos
Sebas

1 Like

You are welcome. Yes, please let the community know if you need any further assistance.

1 Like

Funciono muy bien!
Muchas gracias por la ayuda

1 Like