Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
ankur_abhishek
Contributor III
Contributor III

Time Difference expression for particular rows

Hi,

I want to create an expression to calculate how much time a particular user stay on a specific page.

I have attached a sample file.

i.e I want to know for a particular session id how much time user stay on login page & various other pages in mins .I am not able to achieve this.

Please help me in creating Expression.

Thanks

Ankur

1 Solution

Accepted Solutions
antoniotiman
Master III
Master III

6 Replies
ankur_abhishek
Contributor III
Contributor III
Author

Please help me on this?

antoniotiman
Master III
Master III

Hi Ankur,

Dimensions :

user_name

session_id

Expression :

Max({<page_viewed={'Logout Page'}>} page_viewed_datetime)-
Min({<page_viewed={'Login Page'}>} page_viewed_datetime
)

Regards,

Antonio

ankur_abhishek
Contributor III
Contributor III
Author

Hi Antonio,

Thanks for your reply!

As per your expression, it will so the time diff btw login page & logout page. But I want the time difference btw the first page (e.g login page) user visit than with the second page (e.g landing page) and so on. So that i can calculate the time user stay on a particular page.

Here in data unique session ids are created wrt particular user & remain same until user logout.

antoniotiman
Master III
Master III

See Attachment.

ankur_abhishek
Contributor III
Contributor III
Author

Hi Antonio,

Thanks for your reply & great work . But there is an error if I select a page from list box it is showing time as below screen shot marked in red. Capt.JPG

antoniotiman
Master III
Master III

See Attachment.