Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
rodri_morales
Creator II
Creator II

Problema with chart

Hi everyone, I have a problem with a chart, it has 3 expresions that calculate different thing and it hasnt any dimension. So the problem is that when I click on a bar line to go to "Precharge Bills" (for example) the chart doesn't do nothing, it's like static.

The expresion is like: =count(if(BillOperation=0, Bill_Number))

and they change de BillOperation to count.

1 Solution

Accepted Solutions
Carlos_Reyes
Partner - Specialist
Partner - Specialist

Por nuestros apellidos yo creo que Borja probablemente hable español también. Sino, siempre puedes poner dos versiones de tu descripción para no limitar las respuestas.

En cualquier caso, y como comenta Nick, será más fácil entender tu requerimiento si posteas un ejemplo.

Lo que yo quiería decir en mi post anterior es que crees una sola dimensión con tres valores diferentes. Puedes poner esas condiciones que describes en la carga de tu tabla para crear el nuevo campo, y después utilizar esa dimensión y la expresión que mencionas:

Yo haría algo como:

LOAD IF(BillOperation=0, 'Estado1',IF(BillOperatrion>=1 and PaidOperation=0,'Estado2',IF(PaidOperation>=1,'Estado3', 'Desconocido'))) AS Estado.

Después utilizar el campo Estado como dimensión y el count(BillNumber) como expresión.

View solution in original post

12 Replies
Not applicable

That is an expected behaviour. In Qliview, when you click on a bar in a bar chart, you are selecting that specific Dimension value.

But in your case there is no dimension, so you won't select anything.

Carlos_Reyes
Partner - Specialist
Partner - Specialist

That's expected, it's working as designed.

For your needs you should create a dimension that contains three values that group your expressions formula. That way you'll be able to use that dimension and only one expression. Then you can click on each dimension value in order to filter the data model.

rodri_morales
Creator II
Creator II
Author

I create 3 dimension:

BillOperation=0

BillOperatrion>=1 and PaidOperation=0

PaidOperation>=1

and 1 expresion: count(BillNumber)

But the bar chart has 3 dimension, so when I click on a bar it doesnt work correctly. How can I explain.. the bar has 3 dimension, depends on each part I click, the filter changes. Do you understand?

If someone speak spanish tell me, so I can explain better

nickking
Contributor III
Contributor III

Try attaching a copy of your Qlikview file here so that people can see your problem as that will make it easier to understand both the problem and the suggested fixes.

Carlos_Reyes
Partner - Specialist
Partner - Specialist

Por nuestros apellidos yo creo que Borja probablemente hable español también. Sino, siempre puedes poner dos versiones de tu descripción para no limitar las respuestas.

En cualquier caso, y como comenta Nick, será más fácil entender tu requerimiento si posteas un ejemplo.

Lo que yo quiería decir en mi post anterior es que crees una sola dimensión con tres valores diferentes. Puedes poner esas condiciones que describes en la carga de tu tabla para crear el nuevo campo, y después utilizar esa dimensión y la expresión que mencionas:

Yo haría algo como:

LOAD IF(BillOperation=0, 'Estado1',IF(BillOperatrion>=1 and PaidOperation=0,'Estado2',IF(PaidOperation>=1,'Estado3', 'Desconocido'))) AS Estado.

Después utilizar el campo Estado como dimensión y el count(BillNumber) como expresión.

Not applicable

Exacto. La solución de Carlos te debería funcionar perfectamente Rodrigo.

Carlos is right, that solution should work for you Rodrigo.

rodri_morales
Creator II
Creator II
Author

Funciona perfecto! Muchisimas gracias! Otra consulta, porque ahora me aparecen las 3 barras del mismo color, hay forma de cambiarlas?

It works correctly! Thank you! I have another doubt, cause know the 3 bars have the same color, can I change it?

EDIT

I can use different colors, I have to tick "Multicolor"

rodri_morales
Creator II
Creator II
Author

Aplique lo mismo a las atiguedades de las facturas, es decir, hay 3 graficos (Antiguedad Precarga, Antiguedad Procesadas y Antiguedad Pagos Emitidos) y cree una dimension con las antiguedades (<= 5 dias, >=6 y <=14 dias y >=15 dias), pero se me crea otra dimension con valores que no se de donde salen, no deberia. Que puede ser?

Apply the same to the antiques of bills, eg, there are 3 graphic (Preload Age, Process Age and Payments Age) and create a dimension with antiques (<= 5 days,> = 6 and <= 14 days and >= 15 days), but appear another dimension with values ​​that I dont know where they come, it should not. What can it be?

Carlos_Reyes
Partner - Specialist
Partner - Specialist

Pues pueden ser varias cosas pero lo más probable es que no estés cachando todas las posibilidades en tu IF, y esos valores que no reconoces son esas posibilidades que no están siendo cachadas por tus condiciones. Si puedes poner tu código, el resultado esperado y los valores que no reconoces será más fácil ayudarte.

Saludos.