Shane young did a good job of explaining how to use Sequence() for incrementing in a ForAll() (Click for Shane's Video) . However, I need to increment inside my ForAll() if a condition is met. Thus, Sequence is a no-go. Since Set() and UpdateContext() arent happy inside ForAll(), is there another option?
Just to start discussion, this is the theory of what I want to do. However, it wont work because UpdateContext() isnt valid.
With({_FData:FilteredData},
ForAll(_FData,Patch(FilteredData,LookUp(FilteredData,Index=ThisRecord.Index),{GroupIndex:GpIndx});If(LookUp(FilteredData,Index=Index+1).Valve_Type<>ThisRecord.Valve_Type,UpdateContext({GpIndx:GpIndx+1})))