Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
New to DAX. Whenever UserType='New', I need to flag all rows for that userID that have a Timestamp within 10 hours of the original Timestamp when the User was 'New'. If the Timestamp goes beyond 10 hours from the last TS the user was still new, flag those rows as "Returning".
UserID | Timestamp | UserType | UserIdentity (DESIRED COLUMN) |
A | 2019-03-02 03:20:00 | New | New |
A | 2019-03-02 05:20:15 | Returning | New |
A | 2019-03-015 05:24:09 | Returning | Returning |
B | 2020-01-13 09:34:09 | New | New |
B | 2020-04-01 12:09:34 | New | New |
Hi @ropathak ,
Try this code:
User | Count |
---|---|
12 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
24 | |
19 | |
14 | |
10 | |
7 |