Filter datatable -

Buenas tardes colegas! Como andan?

Consulta, estoy recibiendo mediante un excel un datatable como input, yo a este data table lo quiero filtrar con la siguiente condicion:

Si (Proveedor es X o el Nuevo_Proveedor es X) y Baja = false entonces
obtener registros

Output: No se quitan columnas

image

La columna baja llega indiscriminada :confused:

PROVEEDOR: 2
MODIF: 6
BAJA: 7

Output recibido:
2|6|7
X|N|0
X|X|0
N|X|1
X|Z|0
Z|X|1

Output esperado:
2|6|7
X|N|0
X|X|0
X|Z|0

1 Like

Hi @josesgar

the And prior to Or, so in your case maybe you need to try follows.
2 Contains “X”
And 7 = 0
Or 6 Contains “X”
And 7 = 0