Forum Discussion

bob57's avatar
bob57
Icon for Helper IV rankHelper IV
4 years ago

Track/Create Revision History

Hello PBI Community,

A client is requesting that I calculate the number of days a record remains in a particular status. In this (over simplified) example below, I need to calculate the number of days that a file remained "on hold". The first field is the File Id, the second field is the date that the record was created, and the third field defines the record's status.

 The status for all records in the table below is "in process".

In the table beow, the status for record 103 changed to "on hold" after refresh on 1/22/2022.

In the table below, the status for record 103 returns to "in process" after refressh on 1/27/2022, so record 103 was on hold for 5 days

Is there a way to calculate this number (5 days on hold) with the limited data I am presented? There is no date field to indicate when the status changed.

I hope this write-up was clear and thank you for your time.

Bob

 

2 Replies