Hierarchy Filters without NULLs

Hi team,

Recently I’ve experimenting with utilize the new Hierarchy filter on my dashboards.
I have a case with Property Hierarchy that don’t have an simple, properly orderder hierarchy witch scenario parent → child → grandchild.
My Property Hierarchy might have an empty level because of business requirements and in that situation the Hierarchy Filter display NULLs.

Is there any option/ideas how can I build the Hierarchy Filter that will skip NULL level and display next available lvl from the hierarchy?

Please check my screenshot, right know it’s not user-firendly at all.

Hi @emil.zywina,

Unfortunately, the Null options setting won’t fix this one. The documentation notes that it applies only to the values shown in your visuals and doesn’t affect how null values appear in the hierarchy filter control itself, so the control shows NULL even with Exclude nulls selected.

One workaround is to build the hierarchy from calculated fields that fill each empty level with the next available level using coalesce, which returns the first value that isn’t null. With your four fields, that would look something like:

  • Level 1 (display): coalesce({Level 1}, {Level 2}, {Level 3}, {Property})
  • Level 2 (display): coalesce({Level 2}, {Level 3}, {Property})
  • Level 3 (display): coalesce({Level 3}, {Property})
  • Property: as is

Then add those calculated fields to the hierarchy filter in place of the originals. Since text dimensions can be used as levels, this should work, but it’s worth testing on your data first.

One trade-off to be aware of: each level in the control is its own field, so a gap can’t be skipped entirely, only filled. Wherever a level was empty, you’ll see the next value repeated, for example China QA > AHOIQingdao > AHOIQingdao instead of China QA > NULL > AHOIQingdao. If you’d rather repeat the parent instead, swap the order so each level falls back to the level above it.

Hope this helps and feel free to reply with clarifications or additional questions.

Thank you for the response, unfortunately that proposition isn’t suitable for our needs.
Can we mark this topic as feature request?

Hi @emil.zywina,

Yes, I’ll go ahead and mark this thread with the feature request tag and archive it to promote visibility to the product team.