Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards
SOLVED

CJA - Time between events

Avatar

Level 2

New to CJA but this seems like it should be straightforward. (always does)

What to create two derived fields and then use those in a Date Math function to figureout the delta time between them. 

I have defined both of the derived fields and when used in a report bring back expected data. 

Issue comes in when I try and used those two derived fields to create a new derived feild. 

System says the first and second rule are not referanced in final output. 

But I can't 'see' the option to select them in the Date Math operator. 

 

KirkBe1_0-1761137825992.pngKirkBe1_1-1761137837218.pngKirkBe1_2-1761137874797.png

KirkBe1_3-1761137888851.png

 

 

 

 

1 Accepted Solution

Avatar

Correct answer by
Level 2

Thank you all. Figured it out. It was user error. 

I was using the custom timestamp and should have been using the event timestamp. 

 

Use the second one here, not the first one. 

KirkBe1_0-1761664561842.png

 

View solution in original post

7 Replies

Avatar

Community Advisor and Adobe Champion

I don't have CJA, but your approach looks logical to me... 

I will try and see if I can find someone more familiar with CJA derived fields to help.

Avatar

Level 2

Thank you . 

Avatar

Level 2

Hi @KirkBe1 !

 

I can't seem to recreate the issue on my end, my first thought was that the derived fields you are using are the wrong data format. When I use the Timestamp from Event Datasets, I don't see the "event" scope option on the date math function, only session and person. Does it work when you change the scope on that date-math function to "session"?

 

blasta86794993_0-1761309224522.png 

blasta86794993_1-1761309291924.png

 

 

Avatar

Adobe Champion

oops, I logged in on the wrong account to post this reply!

Avatar

Level 1

@KirkBe1 I believe the scope is what's causing your issue as mentioned above. If you change to session or person you should be able to see your earlier rules.

With event scope however, only limited options appear. At one point I attempted to calculate a delta between the event timestamp and the data capture time (as populated by Edge/data stream upon ingestion) and wasn't able to do so at the event scope.

Avatar

Correct answer by
Level 2

Thank you all. Figured it out. It was user error. 

I was using the custom timestamp and should have been using the event timestamp. 

 

Use the second one here, not the first one. 

KirkBe1_0-1761664561842.png

 

Avatar

Community Advisor and Adobe Champion

Glad you figured it out!