Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago

calculated column with Isblank

Hi,

 

This is my dummy data but actually, I want to work on a huge dataset.

GPP is a calculated column. If the Description column is blank then "NO" else "YES".

 

I tried to use If ISBlank function but sometimes it gives correct output sometimes not. 

 

 

6 Replies

  • Anonymous , New column

    Is Blaknk = if(isblank([description]) , "Yes" ,"No")

     

    Not is blank  = if(isblank([description]) , "No" ,"Yes")

  • Nathaniel_C's avatar
    Nathaniel_C
    Community Champion

    Hi Anonymous ,

    Try this

    GPP = IF(MAX('Table'[Descriptions]) ="","No","Yes")


    Let me know if you have any questions.

    If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos πŸ‘are nice too.
    Nathaniel

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      @Nathaniel_C

      Thank you for your help! The formula doesn't give the correct answer sometimes.

      • Nathaniel_C's avatar
        Nathaniel_C
        Community Champion

        Hi Anonymous ,
        It is possible that the cell is not empty, so for instance if there was a space in the cell.  Is there any way to check that in your data?
        Let me know if you have any questions.

        If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos πŸ‘are nice too.
        Nathaniel

  • Hi Anonymous 

    How exactly does that formula not work?  You need to be specific and show the incorrect results.  The formula works fine for me even woth a cell that just contains spaces.

    If you can share some actual, real data, specifically the data that gives the incorrect result, that would help.

    regards

    Phil

  • v-deddai1-msft's avatar
    v-deddai1-msft
    Community Support

    Hi Anonymous ,

     

    As mentioned by Nathaniel_C, maybe you have space in column,please try the following : 

     

    GPP1 = IF(MAX('Table'[Descriptions]) =" " || ISBLANK(MAX('Table'[Descriptions])),"No","Yes")

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

    Best Regards,

    Dedmon Dai