Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

If blank then return ...

Hi all,

 

I created a nested IF formula( see below). This works great when there is data however it is returning 'Outstanding' when there is no data for the period (I assume it is becuase of 0).

 

How can I add in- IF blank then return 'Not Eligible' instead of it defaulting to zero?

 

NA Ratings =
IF(
[No Access Rate] >= 0 && [No Access Rate] <= 0.014,
"Outstanding",
IF(
[No Access Rate] > 0.015
&& [No Access Rate] <= 0.02,
"Exceeds Expectations",
IF(
[No Access Rate] > 0.02
&& [No Access Rate] <=0.025,
"Acheiving Expectations",
IF(
[No Access Rate] > 0.025
&& [No Access Rate] <= 1,
"Below Expectations"
)
)
)
)
  • Anonymous's avatar
    Anonymous
    6 years ago

    Have you tried this?

     

     

    NA Ratings = 
    IF(
    ISBLANK([No Access Rate]), "Not Eligible",
    IF(
    [No Access Rate] >= 0 && [No Access Rate] <= 0,014,
    "Outstanding",
    IF(
    [No Access Rate] > 0,015
    && [No Access Rate] <= 0,02,
    "Exceeds Expectations",
    IF(
    [No Access Rate] > 0,02
    && [No Access Rate] <=0,025,
    "Acheiving Expectations",
    IF(
    [No Access Rate] > 0,025
    && [No Access Rate] <= 1,
    "Below Expectations"
    )
    )
    )
    )
    )

     

    If this is still not working for you, can you give me the code behind the measure [No Access Rate]?

     

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Have you tried this?

     

     

    NA Ratings = 
    IF(
    ISBLANK([No Access Rate]), "Not Eligible",
    IF(
    [No Access Rate] >= 0 && [No Access Rate] <= 0,014,
    "Outstanding",
    IF(
    [No Access Rate] > 0,015
    && [No Access Rate] <= 0,02,
    "Exceeds Expectations",
    IF(
    [No Access Rate] > 0,02
    && [No Access Rate] <=0,025,
    "Acheiving Expectations",
    IF(
    [No Access Rate] > 0,025
    && [No Access Rate] <= 1,
    "Below Expectations"
    )
    )
    )
    )
    )

     

    If this is still not working for you, can you give me the code behind the measure [No Access Rate]?

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      Worked perfectly, thanks.