Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
kamalqlik
Partner - Specialist
Partner - Specialist

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
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

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

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
kamalqlik
Partner - Specialist
Partner - Specialist
Author

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.

SunilChauhan
Champion
Champion

use thee formula beelow in expression

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

or

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

Sunil Chauhan
kamalqlik
Partner - Specialist
Partner - Specialist
Author

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.

SunilChauhan
Champion
Champion

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

Sunil Chauhan
Anonymous
Not applicable

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))