Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I want to get the final output based on multiplication of variables and a column(Value) of a pivot in QlikView. Below is my requirement-
Variables-
Variables | |
A | 20 |
B | 50 |
C | 30 |
D | 60 |
Current Pivot Chart-
Name | Value |
A | 10 |
B | 20 |
C | 3 |
D | 40 |
E | 100 |
F | 60 |
Expected Pivot Chart-
Name | Value |
A | 200 |
B | 1000 |
C | 90 |
D | 2400 |
E | 100 |
F | 60 |
May be like this
Sum(If(Variable > 0, Value * Variable, Value))
I think we have to check for every name i.e. sum(if(Name='A', Value*A,if(Name='B',Value*B and so on ......)))
Why would you want to do that?
On the fly user wants to enter values and then it should multiply with the expected output which i mentioned.
Hi,
Do you have Fixed number of Name values ? i.e you want to multiply only the four Name values with the variables?
If yes , attached is the solution.
I didn't find any attachment
Hi,
Attached the qvw file below.
Any other solution? because I have to do it for 40-50 different variables and I already have so much calculation in expression.
I would use INPUTFIELD and INPUTSUM instead of variables - it's much more flexible.
Just remember to reset INPUT-values after each reload.