Forum Discussion

jPinhao's avatar
jPinhao
Advocate II
9 years ago
Solved

Modelling user status dynamically (Acquired, Last Activity, etc.)

I want to segment my users by First/Last activity. This is easy enough to do statically - you create columns on a user Dimension table and for each user select the Min/Max date where they logged some...
  • Anonymous's avatar
    Anonymous
    9 years ago

    Hi jPinhao,

     

    According to your description, you want to get the each user's products' first activity time and last activity time, right?

     

    If it is a case, you can refer to below steps.

     

    Your activity table:

     

    Create a summary table to get the reuslt:

     

    Table formula:

     

    Active Table = SUMMARIZE('User Actions','User Actions'[User],'User Actions'[Product],"First Date", MINX( FILTER(ALL('User Actions'),'User Actions'[User]=EARLIER('User Actions'[User])&&'User Actions'[Product]=EARLIER([Product])),'User Actions'[Date]),"Last Date",MAXX( FILTER(ALL('User Actions'),'User Actions'[User]=EARLIER('User Actions'[User])&&'User Actions'[Product]=EARLIER([Product])),'User Actions'[Date]))

     

     

    Create the visual to display the result:

    The summary table's data will auto refreshed when you update the user action table.

     

    Regards,

    Xiaoxin Sheng