Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. 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
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 48 | |
| 40 | |
| 37 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 69 | |
| 67 | |
| 32 | |
| 27 | |
| 26 |