Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to exclude '-' data

I need to create two categories "In client services" which = Jira ticked number being blank/empty/null and

Escalated to PD which = a value in the record

Using the following expression:

if(jira_ticket_number='' or 0 or Null() or '-','In client services','Escalated to PD')

I am still getting '-' values in my dataset, any tips on how to include this in my grouping?

Thank you!

Screen Shot 2017-06-05 at 4.23.58 PM.png

1 Solution

Accepted Solutions
sunny_talwar

Try like this

If(Len(Trim(jira_ticket_number)) = 0, 'T', 'F')

View solution in original post

7 Replies
Not applicable
Author

I just checked using this formula If(IsNull(jira_ticket_number), 'T', 'F')

and the values test as F for being Null, what else would cause a '-' type record entry?

sunny_talwar

Try like this

If(Len(Trim(jira_ticket_number)) = 0, 'T', 'F')

Not applicable
Author

Hi Sunny,

This worked, thank you!

Not applicable
Author

actually, I am still getting '-' values

sunny_talwar

Can you share the exact script you are using or expression? I am confused where you are using this

d_prashanthredd
Creator III
Creator III

Hi Monica,

I think you are using other dimensions which are having proper values against this.

Not applicable
Author

Hi Sunny, I solved this, there was an issue with my original if expression.

if(jira_ticket_number='' or 0 or Null() or '-','In client services','Escalated to PD')

vs

if(jira_ticket_number=''or jira_ticket_number =0 or isNull(jira_ticket_number) or jira_ticket_number='-' ,'In client services','Escalated to PD')

Thank you