Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hello everyone,
I have some data, and I would like to create two new columns based on the grouping of the incident number and the arrival time.
Original data:
| Incident Number | Unit Arrived On Scene Time |
| PB190020726 | 9/26/2019 4:11 PM |
| PB190020736 | |
| PB190020736 | |
| PB190020736 | |
| PB190020740 | 9/26/2019 7:03 PM |
| PB190020748 | 9/26/2019 10:21 PM |
| PB190020751 | 9/26/2019 11:48 PM |
| PB190020751 | |
| PB190020751 | 9/26/2019 11:50 PM |
| PB190020751 | 9/27/2019 12:06 AM |
| PB190020774 | |
| PB190020774 | 9/27/2019 9:12 AM |
| PB190020774 | 9/27/2019 9:10 AM |
Desired data:
| Incident Number | Unit Arrived On Scene Time | 1st Unit? | didnotarriveflag |
| PB190020726 | 9/26/2019 4:11 PM | TRUE | FALSE |
| PB190020736 | FALSE | TRUE | |
| PB190020736 | FALSE | TRUE | |
| PB190020736 | FALSE | TRUE | |
| PB190020740 | 9/26/2019 7:03 PM | TRUE | FALSE |
| PB190020748 | 9/26/2019 10:21 PM | TRUE | FALSE |
| PB190020751 | 9/26/2019 11:48 PM | TRUE | FALSE |
| PB190020751 | FALSE | TRUE | |
| PB190020751 | 9/26/2019 11:50 PM | FALSE | FALSE |
| PB190020751 | 9/27/2019 12:06 AM | FALSE | FALSE |
| PB190020774 | FALSE | TRUE | |
| PB190020774 | 9/27/2019 9:12 AM | FALSE | FALSE |
| PB190020774 | 9/27/2019 9:10 AM | TRUE | FALSE |
Would you know how I can do this?
Thank you for your help,
Denisse
Solved! Go to Solution.
Try this:
Try this:
@Anonymous it seemed to work, thank you so much!
@Anonymous , Please try the new columns in dax , you can take the first one as Var in the second , if needed
First Date = minx(filter(Table,[Incident Number] =earlier([Incident Number]) && not(isblank([Unit Arrived On]))),[Unit Arrived On])
Time 1st Unit = if( [Unit Arrived On] = [First Date] , true(), false())
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 4 | |
| 3 |
| User | Count |
|---|---|
| 13 | |
| 10 | |
| 10 | |
| 9 | |
| 8 |