Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
niharika1234
Creator
Creator

Set Analysis Logic

Hello,

I am trying to pull Incident( [MOR_IncidentId])that are open more than 21 days  and where MOR_CATEGORY_Final ( Category )is not Populated or null. In my cases all category is declared as '-'. My syntax is :

[21day_Flag] = declared in script . 

count({< MOR_CATEGORY_Final = {"*-*"}, [21day_Flag] = {1}>} DISTINCT [MOR_IncidentId]). Here is what I got.

 

Untitled.png

I am getting some value in  MOR_category_Final where I should be not be. it should all show '-'.If I am removing * from logic I am not getting any value.Please suggest.

Niha 

2 Solutions

Accepted Solutions
sunny_talwar

May be try this

Count({<MOR_CATEGORY_Final = {"=Len(Trim(MOR_CATEGORY_Final)) = 1"}, [21day_Flag] = {1}>} DISTINCT [MOR_IncidentId])

View solution in original post

niharika1234
Creator
Creator
Author

You are awesome ! It worked. 

View solution in original post

2 Replies
sunny_talwar

May be try this

Count({<MOR_CATEGORY_Final = {"=Len(Trim(MOR_CATEGORY_Final)) = 1"}, [21day_Flag] = {1}>} DISTINCT [MOR_IncidentId])
niharika1234
Creator
Creator
Author

You are awesome ! It worked.