Tracking Metrics Before and After Change Point
My team and I are currently working on a pivot table where we track how slot machines are performing based on their Stand ID (denoting a location on a floor), based on changes made to machines at that location.
The "ChangesPivot_v1" attachment shows our first attempt at this, where the Stand Config Version number changes every time any change is made to the machine. The version number is based on a start and end date for that particular configuration. Metrics and changes between configurations are expressed in multiple rows, one for each machine configuration.
To highlight a specific example, we would consider a change to have occurred on 3/10/2023 in the "ChangesPivot_v1" attachment. Prior to the change on 3/10, this machine recorded $2,199.14 in Win. After the change, from 3/10-3/13, this machine recorded $1,578.11 in Win.
The request was made to consolidate these and present metrics broken up into before and after a particular change is made. Our attempt at this is shown in the "ChangesPivot_v2" attachment. We attempted to display the Win recorded for a given Configuration (denoted by the start date), then the Win recorded for the previous configuration.
To accomplish this, we tried using the PREV function in the widget editor (please see "Prev_logic" attachment). However, this is not giving us the results that we expect. In the v2 screenshot, for the change on 3/10/2023 we would want the Win column to show $1,578 and Previous Win column to show $2199 ideally on the same row, but we're not getting the results we would like.
Is there potentially a better way to go about accomplishing this? Please advise if any clarification will be necessary.
Thank you