Filter to show blank cells?

louiswatson
louiswatson Member
edited March 2023 in Datasets

Hey! I am looking to filter data to show columns that have empty cells. For example showing all results where 'Planning Condition Status' is blank.

I had a look at doing a Beast mode formula but wasn't sure how to put 'Blank' in the formula? Is there an easier way for me to do this?


Thankyou in advance.

Best Answer

  • GrantSmith
    GrantSmith Coach
    Answer ✓

    You can do something like this to handle NULL / empty values:

    CASE WHEN `Planning Condition Status` IS NULL THEN 'Blank' ELSE 'Not Blank' END
    
    **Was this post helpful? Click Agree or Like below**
    **Did this solve your problem? Accept it as a solution!**

Answers

  • GrantSmith
    GrantSmith Coach
    Answer ✓

    You can do something like this to handle NULL / empty values:

    CASE WHEN `Planning Condition Status` IS NULL THEN 'Blank' ELSE 'Not Blank' END
    
    **Was this post helpful? Click Agree or Like below**
    **Did this solve your problem? Accept it as a solution!**
  • Thankyou Grant, really helpful!

  • @louiswatson you can also do something like this

    IFNULL(`Region`, 'Not Mapped')

    **If this answer solved your problem be sure to like it and accept it as a solution!

  • @GrantSmith I've been using the null filter extensively with great success, but I've run into a card for which the replacement value will not show. I've tried all your suggestions from other threads with no luck, (everything but the kitchen sink, as you can see below!) but it still won't pass the 'Missing Data' text value - thoughts?? Has to be something stupid, just can't put my finger on it!


    CASE
    WHEN 'FIELD' is not null then 'FIELD'
    WHEN 'FIELD' IS NULL or TRIM('FIELD') = '' THEN 'Missing Data'
    WHEN COALESCE(TRIM('FIELD'), '') = '' THEN 'Missing Data'

    ELSE 'Missing Data'
    END