Skip to Content

How can I display zero if a variable is null?

I have a WebI report in which I have a few numeric variables for which I would like to display zeroes if the value is null. I realize can do something like this...

=If(IsNull([MyVariable]);0;[MyVariable])

Is that the only way?

I am using BO 4.0 SP4 Patch 3.

Thanks,

Noel

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 12, 2012 at 08:00 AM

    Hi,

    You can also use these,

    =If(isnumber([MyVariable]);[MyVariable];0)

    or

    =If(formatnumber([MyVariable];"#")="";0;[MyVariable])

    or

    =If(isstring([MyVariable]);0;[MyVariable])

    Hope these helps,

    Utku Sancaktar



    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 06, 2016 at 11:14 AM

    Hi All,

    I have the same requirement.

    I have multiple measure variables (each for different trends)

    Sales - current 12 months

    Sales - prev 12 months

    Sales - curr YTD

    Sales - prev YTD

    Here I show them in a crosstab in my dashboard. For various rows I see null/blanks.

    So, at the universe, as suggested by Ranjani and others, I tried defining '0' in Undefined box.


    But, it still shows null values 😔


    My table looks as below


    Table.png (4.4 kB)
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.