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

Expresion chart

Hi everyone, I have a problem, I want to make a chart with dimension=User and a calculated expresion, but I want to make a table with 2 options and when I click on one the chart show the results. I want this expresions in the same chart, but depends on where I click, the chart show "Pagos" or "Canje"

The expresions are:

=sum(if(EsCanje=0, amount)

=sum(if(EsCanje=1, amount)

The table must show "Pagos" and "Canje" (they are determined by the attribute "EsCanje", if EsCanje=0 --> Pago, if EsCanje=1 --> Canje).

How I have to do?

1 Solution

Accepted Solutions
rodri_morales
Creator II
Creator II
Author

I can do it. I maje a table with the value 'Tipo de Pago' like this:

if(EsCanje=0, 'Pagos', if(EsCanje=1, 'Canje')) as 'Tipos de Pago'

Then I use the expresion sum(amount) and when I click in a value of the table, the chart change

View solution in original post

6 Replies
swuehl
MVP
MVP

Not sure if I've  understood your requirement correctly.

You can create a variable and a button with an action to switch between two values.

Then use a chart with your two expressions, and set conditionals based on the variable value for both expressions.

Hope this helps,

Stefan

rodri_morales
Creator II
Creator II
Author

I want to make a table with two expresions: "Pagos" (if EsCanje=0) and "Canje" (if EsCanje=1), and when I click on one of this values, the chart change the expresion, but always with the same Dimension (Users).

The chart has one dimension and I want to select from a table of 2 values, and when I click the chart must show me the results for that value.

tresesco
MVP
MVP

May be, you can try with ValueList()/ValueLoop().

Not applicable

You can create a button with action to select the field Escanje with the following action

Field select "Escanje"

= if (Escanje = 1,0,1).

Already in use table expressions

=sum({<  Escanje= {0}>} Amount)

=sum({<  Escanje= {1}>} Amount)

CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

Check with whats new in Qlikview 11.Click Here

Go to Reports tab and check the Dimensions and measures list box.

rodri_morales
Creator II
Creator II
Author

I can do it. I maje a table with the value 'Tipo de Pago' like this:

if(EsCanje=0, 'Pagos', if(EsCanje=1, 'Canje')) as 'Tipos de Pago'

Then I use the expresion sum(amount) and when I click in a value of the table, the chart change