Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

including blank in filter selection

Hi

I have a field in which the values are daily and hourly .. and there are some blanks .. i want to show blanks along with the Hourly and Daily values when selected .. here is the condition i am using in the script

if(Len(Trim("metric_breakdown") = 0 or "metric_breakdown"='daily'),'Daily',

if(Len(Trim("metric_breakdown") = 0 or "metric_breakdown"='hourly'),'Hourly')) as [Rum Metric Breakdown],*;

what is that i am doing wrong .. i could only see daily value in my filter

Thanks

1 Solution

Accepted Solutions
vishsaggi
Champion III
Champion III

Try this:

if(Len(Trim("metric_breakdown")) = 0 or "metric_breakdown" = 'daily' ,'Daily',

if(Len(Trim("metric_breakdown")) = 0 or "metric_breakdown" = 'hourly','Hourly')) as [Rum Metric Breakdown]

View solution in original post

1 Reply
vishsaggi
Champion III
Champion III

Try this:

if(Len(Trim("metric_breakdown")) = 0 or "metric_breakdown" = 'daily' ,'Daily',

if(Len(Trim("metric_breakdown")) = 0 or "metric_breakdown" = 'hourly','Hourly')) as [Rum Metric Breakdown]