Apologies if the question seems simple. This is my first workflow, and while I have sorted most of my own questions, this solution eludes me; I would be be grateful for your thoughts.

Setup:
* I have a large dataset, I have done a series of manipulation on that data to endup with an Entity, Row value (RV), and Sum of row value by entity (SRV)
* Original dataset had 1-1000 rows per entity
* Further reduced my target data by sorting by descending Row Value and taking a sample of the top 4 rows
The Goal:
* I only want to identify the top 75% of rows by RV as a % of SRV
Method that has had the most results:
* Created a Running total of RV (RTRV)
* Calculated RTRV as a percentage of SRV.
* Created a flag column with the logic with the logic: if RTRV_pct_SRV < .75, "Y", else "N" endif
The issue is that this will flag while less than. But I really need while less than and the next item, the one that brings it over 75%, or if the RTRV_pct_SRV never reaches 75%, then i need all 4 values.