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: 
dandaanilreddy
Partner - Creator III
Partner - Creator III

Set analysis help

Hello All,

I have a if condition expression like below and i want to ignore a field selection resource. Please can someone let me know how can i achieve this using set analysis? 

count(if(date(date#(due_date,'DD/MM/YYYY'),'DD-MM-YYYY')<date(Today(),'DD-MM-YYYY') and not wildmatch(status, 'Closed', 'Resolved'), resource)

Note: when user selects a value from resource field my Kpi should not reflect.

Thanks

Labels (1)
6 Replies
sidhiq91
Specialist II
Specialist II

@dandaanilreddy  Please use the below expression to resolve the issue.

count({<due_date={"<=$(=Date(Date#(today(),'MM/DD/YYYY'),'DD-MM-YYYY'))"}, status-={'Closed','Resolved'}>}resource)

If this resolves your issues please like and accept it as a solution.

MayilVahanan

HI 
If you want to ignore the selection, you can add resource= in the set analysis.

Slight difference from Sidhiq solution,


count({<due_date={"<=$(=Date(Date#(today(),'MM/DD/YYYY'),'DD-MM-YYYY'))"}, status-={'Closed','Resolved'}, resource=>}resource)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
dandaanilreddy
Partner - Creator III
Partner - Creator III
Author

@MayilVahanan @sidhiq91  Thanks for your response. I have tried the expression but my KPI is showing zero. Ideally my value should be 2.

My due_date format is like 25/Jul/2022

count({<due_date={"<=$(=Date(Date#(today(),'MM/DD/YYYY'),'DD-MM-YYYY'))"}, status-={'Closed','Resolved'}, resource=>}ticket)

 

Thanks

BrunPierre
Partner - Master II
Partner - Master II

@dandaanilreddy  May this;

count({<due_date={"<=$(=Date(Date#(today(),'MM/DD/YYYY'),'DD/MMM/YYYY'))"}, status-={'Closed','Resolved'}, resource=>}ticket)

dandaanilreddy
Partner - Creator III
Partner - Creator III
Author

Hi Peter,

Thank you for the response. I have tried above expression but still no luck. My due_date format is like 25/Jul/2022

 

BrunPierre
Partner - Master II
Partner - Master II

Could you share a sample and the output desired?