Forum Discussion
qwertzuiop
Advocate III
6 years agoCalculate time interval to next message
Hello dear PowerBI-Community I hope you guys could help me with the following problem. In the example (see table) there are several transports. Each transport has an unique ID. A transport ...
- 6 years ago
Hi qwertzuiop ,
Measure = VAR temp_table = FILTER ( SUMMARIZE ( ALL ( 'Table'[transportID]; 'Table'[messageCreated] ); 'Table'[messageCreated]; 'Table'[transportID] ); 'Table'[messageCreated] > MAX ( 'Table'[messageCreated] ) && 'Table'[transportID] = SELECTEDVALUE ( 'Table'[transportID] ) ) VAR Current_Date = SELECTEDVALUE ( 'Table'[messageCreated] ) VAR Time_difference = DATEDIFF ( Current_Date; MINX( temp_table; 'Table'[messageCreated] ); MINUTE ) / 60 + 0 RETURN Time_difference
qwertzuiop
Advocate III
6 years agoI don't know why but figure 2 was missing.
sorry
figrue 2
qwertzuiop
Advocate III
6 years agoExcuse me
Now I got it.
The calculated table is the one out of my example.
But then why is this error?