Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
kamalqlik
Valued Contributor

How to capture null value in following example

Hi Friends

                 I am using the four fields as Revenue,Expenses,Tax and Year in the table.

                 We are using a expression Income as (Revenue -Expenses-Tax) ,there is one null value in tax.What i want is that when we run a loop and as it identify the null value,the loop breaks and calculate the income for the data before the null value and will show the income for the data after the null value as 0.

I am attaching my excel sheet with this.

Thanks in advance

6 Replies

How to capture null value in following example

HI,

    Can you tell us in what way you are using the attahced excel. What kind of chart you are creating. Also tell us what you want with example.

Regards,

Kaushik Solanki

kamalqlik
Valued Contributor

How to capture null value in following example

Hi Kaushik

I just want that in a straight table the data should be displayed with calculations upto the row where the null value in Tax field is captured. You can use any other chart also.

I want that Income field should show  0 as soon as the null value in the Tax field is captured.

Thanx.

chauhans85
Esteemed Contributor

How to capture null value in following example

use thee formula beelow in expression

(Revenue -Expenses-if(isnull(tax)=0,tax,0))

or

(Revenue -Expenses-if(len(tax)>0,tax,0))

kamalqlik
Valued Contributor

How to capture null value in following example

Hi Sunil,I am not getting the results which we want to get.The following expression is also showing the result for the null values and the for the data after the null value.

chauhans85
Esteemed Contributor

How to capture null value in following example

use thee formula beelow in expression

(Revenue -Expenses-if(isnull(tax)=0,tax))

or

(Revenue -Expenses-if(len(tax)>0,tax))

sorry if its not work

hopee someone will hep you

dennisnet
Valued Contributor III

Re: How to capture null value in following example

Sunil's formula's are correct.

Just make sure "Tax" is with a capital, like in your Excelfile

so:

     (Revenue -Expenses-if(len(Tax)>0,Tax))

Community Browser