Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
@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.
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)
@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
@dandaanilreddy May this;
count({<due_date={"<=$(=Date(Date#(today(),'MM/DD/YYYY'),'DD/MMM/YYYY'))"}, status-={'Closed','Resolved'}, resource=>}ticket)
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
Could you share a sample and the output desired?