Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi Community,
I hope you can help me with the following: I want to calculate the time duration of a specific process by a specific user (gebruiker) but have not got further than calculating the time difference between the next process entry.
Current setup:
What should happen:
ID 1291284, user "chefra", process description "Goods Receipt" should have an end time equal to ret_date and a start time equal to ret_date used in ID 1291174 (13:22:10) = time difference of 27 minutes instead of the 19 currently calculated.
Result should be a proper bell curve for all users doing goods receipt instead of what i get now (see example)
Solved! Go to Solution.
Hi @Aeolus ,
You could update your DAX :
GR Index Total = IF ( Table[Process Description] = "Goods Receipt"; RANKX ( FILTER ( Table; Table[Process Text] = "process_receipt" && 'Table'[gebruiker] = EARLIER ( 'Table'[gebruiker] ) ); Table[ID]; Table[ID]; ASC ); 0 )
Start Time = CALCULATE ( FIRSTNONBLANK ( 'Table'[ret_dat]; 1 ); FILTER ( 'Table'; 'Table'[GR Index Total] = EARLIER ( 'Table'[GR Index Total] ) - 1 && 'Table'[gebruiker] = EARLIER ( 'Table'[gebruiker] ) ) )
Hi @Aeolus ,
You could update your DAX :
GR Index Total = IF ( Table[Process Description] = "Goods Receipt"; RANKX ( FILTER ( Table; Table[Process Text] = "process_receipt" && 'Table'[gebruiker] = EARLIER ( 'Table'[gebruiker] ) ); Table[ID]; Table[ID]; ASC ); 0 )
Start Time = CALCULATE ( FIRSTNONBLANK ( 'Table'[ret_dat]; 1 ); FILTER ( 'Table'; 'Table'[GR Index Total] = EARLIER ( 'Table'[GR Index Total] ) - 1 && 'Table'[gebruiker] = EARLIER ( 'Table'[gebruiker] ) ) )
Hi V-eachen,
Works like a charm!!
Thank you,
Aeolus
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 |
---|---|
72 | |
70 | |
55 | |
37 | |
31 |
User | Count |
---|---|
83 | |
64 | |
63 | |
49 | |
45 |