BookmarkSubscribeRSS Feed
misko
Calcite | Level 5
RTDM campaign needs to check whether the client has already given a response 
during the day or in the last 7 days. I created a data process (in CI studio - RTDM campaign)
that "collects" data from the CI_RESPONSE_HISTORY_CUSTS table. The idea is to separate those who
gave an answer during the day through Branch node (or Filter) and send them a certain message,
from those who did not give an answer. I tried to create a calculated variable in various ways
(one of them is this IIF ((DATDIF (<< GetResponseData.Get Response Data_CRM_SLresponse_dt >>, TODAY ()) EQ 1), 1, 0)
but I did not get the desired result. Any idea?
1 REPLY 1
jcawesome
Obsidian | Level 7

Hi @misko ,

 

I normally use this function - INTCK when comparing dates. For example, I have 2 dates: TODAY_calc and DATE_calc. I can subtract the DATE_calc from TODAY_calc and see if the difference is within 7 days or more than that. Check the value first using test mode to ensure your comparing the right values. 

 

intck('day', <<calculatedDataItems.TODAY_calc>>, <<calculatedDataItems.DATE_calc>>)

 

Then use an IIF statement to add in your business logic.

 

iif(intck('day', <<calculatedDataItems.TODAY_calc>>, <<calculatedDataItems.LEADACTIVITYDATE_calc>>) < 7,
<<value if true>> ,<<value if false>>)

 

I hope this can help you. 🙂

Review SAS CI360 now.png

 

Want to review SAS CI360? G2 is offering a gift card or charitable donation for each accepted review. Use this link to opt out of receiving anything of value for your review.

 

 

 

 

SAS Customer Intelligence 360

Get started with CI 360

Review CI 360 Release Notes

Open a Technical Support case

Suggest software enhancements

Listen to the Reimagine Marketing podcast

Assess your marketing efforts with a free tool

 

Training Resources

SAS Customer Intelligence Learning Subscription (login required)

Access free tutorials

Refer to documentation

Latest hot fixes

Compatibility notice re: SAS 9.4M8 (TS1M8) or later

 

 

How to improve email deliverability

SAS' Peter Ansbacher shows you how to use the dashboard in SAS Customer Intelligence 360 for better results.

Find more tutorials on the SAS Users YouTube channel.

Review SAS CI360 now.png

 

Want to review SAS CI360? G2 is offering a gift card or charitable donation for each accepted review. Use this link to opt out of receiving anything of value for your review.

 

 

 

 

SAS Customer Intelligence 360

Get started with CI 360

Review CI 360 Release Notes

Open a Technical Support case

Suggest software enhancements

Listen to the Reimagine Marketing podcast

Assess your marketing efforts with a free tool

 

Training Resources

SAS Customer Intelligence Learning Subscription (login required)

Access free tutorials

Refer to documentation

Latest hot fixes

Compatibility notice re: SAS 9.4M8 (TS1M8) or later

 

 

Discussion stats
  • 1 reply
  • 663 views
  • 1 like
  • 2 in conversation