How to determine if data meets requirement on consecutive passes

Hi,

I wonder if there is a way to find if a certain Trial Subject has met the requirement of “3 consecutive passes” based on the data on the left, and generate a (pivot) table on the right.

The requirement is that once there is a failed trial result, there must be 3 consecutive pass results to make up. The table on the right should only reflect the latest results/statuses.

Thank you for any insights!

Hi @no_hair ,

Welcome to the Quick Sight Community!
For this use case, you may try following steps:

  • create calculated field to return 1 for pass and 0 for fail
  • create calculated field to check sum of pass/fail = 3, then set Yes else no
  • create a pivot table to show the relevant value with filter for top 3 dates.

The solution is not tried out in practice as I do not have sample data for test. If you want further help, please create sample analysis in arena with data for exploration. Will be happy to help!

Thanks,
Prantika

Hi Prantika,

Thank you for your quick reply.

In the 3rd step, once I created the date filter (Top 3 of Max Date), my dataset was filtered down to include only the latest 3 dates in the entire dataset (2/25/2024, 1/25/2024, 1/24/2024, 1/20/2024, 1/19/2024), which made Subject A miss the data for 9/24/2023 and so on. That led to a totally different response than expected.

Am I missing something here?

Thanks again!

Sorry, I missed the part that each subject may have different dates. Then instead of direct filter on the dates, can you try ranking the subject+dates and then filtering rank field?
Please create rank at subject level.

That worked perfectly. Thank you!