Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

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:

=TaxRate*[Act Year IFRSADJ]
(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')

Thanks in advance.

Chris

11 Replies
sinanozdemir
Specialist III
Specialist III

Hi Christian,

Can you try the below?

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

Hope this helps.

Kushal_Chawda

try

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

or

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

Not applicable
Author

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

Not applicable
Author

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

sinanozdemir
Specialist III
Specialist III

Can you post a sample data-set?

avinashelite

try like this:

if (DefTaxCode<>'N/A',TaxRate*[Act Year IFRSADJ])



Not applicable
Author

I just get Zeros. Unfortunately it does not work.

Not applicable
Author

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:

if(DefTaxCode <> 'N/A',-Unternehmenssteuersatz*[Akt. Jahr IFRSADJ],0)

Does somebody have an idea?

Thanks in advance

Chris

sinanozdemir
Specialist III
Specialist III

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