Skip to main content
Solved

GI- show date Customer created vs date SO created


Forum|alt.badge.img
  • Jr Varsity III
  • 65 replies

Hi All, looking to do a GI where we can see if the customer is an existing customer or new customer when the SO comes in from the web. Was thinking of using the SO GI and compare date customer created vs date SO created. I was able to use the formula “=Concat(CStr(Month([SOOrder.CreatedDateTime])),'/' , CStr(Day(  [SOOrder.CreatedDateTime])),'/',CStr(Year( [SOOrder.CreatedDateTime])))” to show just the dates (looking to show just dates not date and time) however now sure how to put into a IF statement so if the dates match it says “new” and if it doesn't match, it says “existing”.

anyone know how to do this.

also, if there is an easier way to accomplish this, that would be great. 

Best answer by lauraj46

Hi @mna10 ,

I would suggest adding the Customer DAC to your generic inquiry.  You could use a formula like this to compare the creation dates:

=iif(Year([SOOrder.CreatedDateTime])=Year([Customer.CreatedDateTime]) and Month([SOOrder.CreatedDateTime])=Month([Customer.CreatedDateTime]) and Day([SOOrder.CreatedDateTime])=Day([Customer.CreatedDateTime]), 'new', 'existing')

See attached GI.

Hope this helps!

Laura

View original
Did this topic help you find an answer to your question?

2 replies

lauraj46
Captain II
Forum|alt.badge.img+8
  • Captain II
  • 579 replies
  • Answer
  • March 8, 2024

Hi @mna10 ,

I would suggest adding the Customer DAC to your generic inquiry.  You could use a formula like this to compare the creation dates:

=iif(Year([SOOrder.CreatedDateTime])=Year([Customer.CreatedDateTime]) and Month([SOOrder.CreatedDateTime])=Month([Customer.CreatedDateTime]) and Day([SOOrder.CreatedDateTime])=Day([Customer.CreatedDateTime]), 'new', 'existing')

See attached GI.

Hope this helps!

Laura


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • 65 replies
  • March 8, 2024

Hi @lauraj46, Thank you! I already had the customer DAC in the GI just didn't know how to apply both to the IF statement. This worked perfect. Thanks again.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings