on 09-25-2012 2:49 PM
Buenas:
Necesito poner evaluar los valores de un campo, en los cuales si hay tres valores correlativos iguales me devuelva ¨"Cumple" o no "Cumple" dependiendo del parametro que yo le de. En excell es sencillo evaluar los campos por filas formulas del tipo =SI(MAX(G3:G14)>=10;"KO";"OK")pero es las bases de datos, para mí, es complicado evaluarlo.
¿Alguien sabe como hacerlo?
DATOS EJEMPLO | ||||
HORA | MEDIDA | VALOR | CONDICIÓN | CUMPLIMIENTO |
0 | 1 | 5 | OK | OK |
0 | 2 | 6 | OK | |
0 | 3 | 4 | OK | |
0 | 4 | 1 | OK | |
0 | 5 | 2 | OK | |
0 | 6 | 15 | KO | |
0 | 7 | 20 | KO | |
0 | 8 | 9 | OK | |
0 | 9 | 6 | OK | |
0 | 10 | 15 | KO | |
0 | 11 | 50 | KO | |
0 | 12 | 2 | OK |
Muchas Gracias,
Creo puedes hacerlo con un case
por ejemplo:
Case "Campo"
When Condición0 Then Resultado (ok)
When Condición1 Then Resultado (ko)
End
Saludos
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
11 | |
10 | |
6 | |
5 | |
5 | |
5 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.