Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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())
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
15 | |
11 | |
11 | |
10 | |
10 |
User | Count |
---|---|
19 | |
14 | |
13 | |
11 | |
8 |