Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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: