Forum Discussion
AuroraNI
Helper III
5 years agodifference based on dynamic rank
Hi, I have the below table in PBI and I would like another column in this table that calculates the time differences between 1st place and all the other runners, and this would change based on the e...
- 5 years ago
amitchandak
Super User
5 years agoAuroraNI , Create a new column like
New colum =
var _1 = minx(filter(Table, event =earlier([event]) && [Time] > earlier([Time])), [Time])
return
if(isblank( _1),0, _1 -[Time])
- AuroraNI5 years ago
Helper III
Hi amitchandak thank you for taking the time to repond and help me. The column calculates the time difference from the next runner.
I would like the time difference to be calculated always from the no.1 Rank runner like below
sorry if that was not clear in my last post
Thank you for the help.
- AuroraNI5 years ago
Helper III
hi amitchandak thank you again for helping, in the initial post. Would you have time to look at my 2nd question please? Thank you.
Olly
- PaulDBrown5 years ago
Community Champion
You can try:
Dif vs Rank 1 = VAR R1Time = CALCULATE([Time], FILTER(ALLSELECTED(Table, Table [Event]), [Rank] = 1) RETURN [Time] - R1Time