I am having issues with a tracking report I have created. The data looks like the following within the database:
|Item Type||Event Time||User||Comment||Workstation|
|Slide A||1/4/23 12:37pm||Jane||Delievered||W340|
|Draft||1/4/23 11:23am||Jane||Put in drop box|
|Slide B||1/4/23 10:02||Julie|| ||W503|
|Slide A||1/4/23 10:01am||Julie||Sent to Lab||W503|
Info about the tracking system. The latest comment always appears at the time and all types are tracked under the same database table. We do not care about infomation of the user or the work station. Whether it is a slide or draft, we want the lastest comment to diplay.
The table visual in the report has other identifying information with joined tables. It is a direct query. It looks like the following:
|Case No.||Status||Case opened date||Priority||Last scan status(Comment)||Last Scan date(Event time)|
|s-1||Grossing||1/2/23 9:00am||2||Put In Mailbox||1/3/23 12:00pm|
|s-4||Complete||1/1/23 9:17am||1||With Doctor||1/3/23 2:30pm|
|s-34||Grossing||1/3/23 9:13am||3||Sent to Lab||1/3/23 10:23am|
So we do not want to show any blank comments so I removed blanks or null from the filter. Cases have multiple status but we only want to show the lastest status date with a comment. What I am running into is sometimes the table does not show the latest date and comment. Since the system puts the latest comment on the first row, I aggregated "Last scan status" to show the first comment and the "last scan date" to show the latest time.
The gets it so that there is only one line per case on the table. If I do dont summarize, it gives all the scans on one case. We do not want that. But the case just randomly will not show the correct "last scan status" but it will show the "latest scan date." Is there a way to create a formula to display this information correctly and accurately. I have tried everything I can think of and have had no success. I checked my SQL query to just confirm there was no issues there and that was fine.
I appreciate the help.