Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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:
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
28 | |
12 | |
10 | |
10 | |
6 |