11 Replies Latest reply: Oct 8, 2015 12:53 AM by Avinash R

# Set Analysis in Calculation (Multiplication)

Hi,

I have a (for me) very tough Topic.

I want to calculate something but I dont get it to work. Maybe someone of you can help me

Now the Formular:

(The  Calculation works but it calculate all entries, - even the ones with DefTaxCode = 'N/A')

Wish:

=TaxRate*[Act Year IFRSADJ] (ONLY If DefTaxCode <> 'N/A')

Chris

• ###### Re: Set Analysis in Calculation (Multiplication)

Hi Christian,

Can you try the below?

Only({<DefTaxCode = {"<>N/A"}>} TaxRate) * [Act Year IFRSADJ]

Hope this helps.

• ###### Re: Set Analysis in Calculation (Multiplication)

Hi Sinan,

unfortunately it did not work.

But I now realised, that the Problem of the Formular is  [Act Year IFRSADJ]

I dont know why, but Qlikview does not calculate with a field (that is already calculated)

Maybe you have another idea :-)

Chris

• ###### Re: Set Analysis in Calculation (Multiplication)

Can you post a sample data-set?

• ###### Re: Set Analysis in Calculation (Multiplication)

try like this:

• ###### Re: Set Analysis in Calculation (Multiplication)

Hi Avinash R,

I tried your idea and it worked partially.

As you can see, the second column is calculated.

Challenge Here:

Line 416 does not calculate --> that is correct

BUT: Line 417 did calculate the sum (it should be Zero as well)

I tried some things but nothing worked.

When everything works, Line 418 should Show the value -696.542,39 (That is my wish ;-)

Here my calculation:

Does somebody have an idea?

Chris

• ###### Re: Set Analysis in Calculation (Multiplication)

Is [Akt. Jahr IFRSADJ] field a dimension or an expression?

• ###### Re: Set Analysis in Calculation (Multiplication)

Hi Christian,

• ###### Re: Set Analysis in Calculation (Multiplication)

try

sum({<DefTaxCode -= {'N/A'}>}TaxRate* [Act Year IFRSADJ])

or

only({<DefTaxCode -= {'N/A'}>}TaxRate* [Act Year IFRSADJ])

• ###### Re: Set Analysis in Calculation (Multiplication)

I just get Zeros. Unfortunately it does not work.

• ###### Re: Set Analysis in Calculation (Multiplication)

Hi Christian!

Just wanted to share a tool with you that has saved my life many times.

Qlik Set Analysis Wizard.

http://tools.qlikblog.at/SetAnalysisWizard/QlikView-SetAnalysis_Wizard_and_Generator.aspx?sa=

Hopefully it helps!

Will

• ###### Re: Set Analysis in Calculation (Multiplication)

Did you try the following: