Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Tomas_Martin
Contributor III
Contributor III

Error if

Buenos días,

Estoy empezando a manejar Qlik Sense y quería saber si me podéis solucionar el siguiente problema.

Introduzco una fórmula de if donde el cliente me solicita bastantes condiciones y llego a un punto que no me deja introducir más porque me indica: if takes 2-3 parameters.

He introducido tres condiciones con dos if cada una pero cuando voy a meter otra, me da el problema reseñado.

Un saludo.

38 Replies
lorenzoconforti
Specialist II
Specialist II

Hi, I'm not 100% following

What would really help is a clear example where you provide:

- the excel file

- the qvf application

- screenshots of what you are trying to achieve

You don't need to share real data but an example will do; I'm clearly struggling to understand the complexity of what you are trying to achieve

Bear in mind that Qlik Sense is extremely powerful so in most situation you can achieve what you want

Tomas_Martin
Contributor III
Contributor III
Author

¿Pero me puedes confirmar que las columnas están bien creadas como Dimensión?

No te puedo enviar el fichero. No me lo permiten.

En lo anteriormente enviado están reflejadas las fórmulas escritas.

Te pongo un ejemplo: dime si Juan es titular o solicitante, nuevo o antiguo (compartición), si se da esta condición que salga "" . Lo mismo con Antonio.

Titular es una columna, solicitante es otra columna y nuevo, antiguo están en una misma columna llamada compartición. Si pongo la columna para Juan me carga los datos en una de las nuevas columnas creadas pero si pongo la misma fórmula para Antonio, esta no me carga los datos en dicha columna.

Si la columna donde cargo los datos la llamo Prueba, entiendo que las fórmulas las cargo dentro de esta dimensión.

El título lo llamo también Prueba.

¿Es necesario crear scripts?.

lorenzoconforti
Specialist II
Specialist II

Can you make a sample application (qvf file) with this example?

Create it from scratch with random data; it will be easier for you to explain and for me to understand

Creating a dimension has some restrictions, it depends on how you are doing it

Tomas_Martin
Contributor III
Contributor III
Author

Ya he hecho una aplicación de muestra (archivo qvf).

Te la envío a ver si me puedes indicar como solucionar dicho problema de carga de condiciones.

Nada más he puesto dos puesto que la segunda no la carga.

Un saludo.

 

 

lorenzoconforti
Specialist II
Specialist II

See attached

Your ifs are fine. You are getting blank cells because in some if conditions you have only defined what happens when the condition is met (True) and not when it is not (false)

I've added the missing values as testx; now you can see that it works for all rows with the extra values I've added; replace those values with what you need

Have a look

Tomas_Martin
Contributor III
Contributor III
Author

Cuando ponía el falso me daba error de parámetros. Los tuve que quitar.

¿Me puedes indicar cómo aplicas los 
),'test5')),'test4')),'test3')),'test2')), 'test1')?

Aunque observo que solo sale el nombre de 'test1' y los otros no.

¿Me lo puedes exlicar?

lorenzoconforti
Specialist II
Specialist II

I can see a lot of occurrences of test1 but also S.A., Otro-Solicitante

The other ones are not coming  out because of the if conditions; you need to review them and adapt them to your logic

Tomas_Martin
Contributor III
Contributor III
Author

Me refiero a que se ve 'test1' pero no se ve 'test2', 'test3', ... ¿Qué criterio se aplica para escribir los 'test' que entiendo se puede escribir la palabra que deseamos que aparezca?

lorenzoconforti
Specialist II
Specialist II

The criteria are in the nested if statements that you created

You need to follow your if statements to determine which path is being followed in each row