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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Sacha
Contributor
Contributor

Formula contains help

Dear community,

In this formula I would like to add one more condition

count(aggr(if(year([Lead.CreatedDate]) = year(today()-1) and month([Lead.CreatedDate]) = month(today()-1) and [Lead.OwnerId] <> '0051t000004EGlIAAW' ,1)
,[Lead.Id]))

 

I would like to say in the formula that Lead.LastName contains "sale at 3"

Can you help me?

Best Regards,

4 Replies
tresB
Champion III
Champion III


@Sacha wrote:

.. Lead.LastName contains "sale at 3"

Try like:

Index(Lead.LastName, 'sale at 3')

Sacha
Contributor
Contributor
Author

Hi Tresesco,

This one?

count(aggr(if(year([Lead.CreatedDate]) = year(today()-1) and month([Lead.CreatedDate]) = month(today()-1) and Index([Lead.LastName]), 'sale at 3') and [Lead.OwnerId] <> '0051t000004EGlIAAW' ,1)
,[Lead.Id]))

tresB
Champion III
Champion III

Yes, Give a try. Ohhho, a bracket correction might be needed.

 and Index([Lead.LastName]), 'sale at 3') and              // remove

Sacha
Contributor
Contributor
Author

Thank you for your help Tresesco. It works perfectly