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

Announcements
Learn how to migrate to Qlik Cloud Analytics™: On-Demand Briefing!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how to Show customer cases created

how to Show CRM customer cases created, only if they are more than 5 new cases for A customer in the last week compared to today's Date

So

if Cases for a customer opened/created in the 7 days compared to today's date and are more than 5 in number for that customer = Show.

Ideally a pop up to the user or an alert if the condition is met.


Thanks in anticipation!

1 Solution

Accepted Solutions
pover
Partner - Master
Partner - Master

The formula looks alright so I would recommend verifying the format of CaseCreateDate to make sure it is being considered a dual data type (date and number). Just do a num(CaseCreateDate) and it should return a number corresponding to the date and not null.

After that I would copy the formula to an text object the just start taking the formula apart and test each part of it to see where the error might be.

Regards.

View solution in original post

4 Replies
pover
Partner - Master
Partner - Master

Hopefully your CRM system gives you a Create Date field and then you can write a simple expression like the following to count the number of create dates within the 7-day range and insert it in the conditional show field in the layout tab and in the condition field in the Tools->Alerts window.

count(if(Create_Date>=today()-7 and Create_Date < today(), Create_Date))>5

If you don't have a create date field then tell us what data you do have to see where we go from there.

Regards.

Not applicable
Author

Hi,

thanks for your response,

the create date field is CaseCreateDate

My Condition is

=count(if(CaseCreateDate>=today()-7 and CaseCreateDate< today(), CaseCreateDate))>5

as soon as i apply, the table disappears, i even removed the >5 condition, and there are cases created in the last seven days.

Not sure where i am going wrong.

Thanks

pover
Partner - Master
Partner - Master

The formula looks alright so I would recommend verifying the format of CaseCreateDate to make sure it is being considered a dual data type (date and number). Just do a num(CaseCreateDate) and it should return a number corresponding to the date and not null.

After that I would copy the formula to an text object the just start taking the formula apart and test each part of it to see where the error might be.

Regards.

Not applicable
Author

Hi,

Thanks, with a couple of changes as per the script, it worked.

Now my next mission is to create pop up or email alerts if this condition is met so that the account manager is reminded to go and do something with that information.

Many thanks
Raj