Forum Discussion
Fill Up or Down or both by Batch ID
- 3 years ago
NewStep=Table.Combine(Table.Group(PreviousStepName,{"Batch Index","Trans Index"},{"n",each let a=List.RemoveItems([Bank Account],{"",null}){0}? in Table.TransformColumns(_,{"Bank Account",each if _=null or _="" then a else _})},0,(x,y)=>Byte.From(x[Batch Index]<>y[Batch Index] or y[Trans Index]=1))[n])
This works PERFECTLY with the exception of transactions like the following (my apologies this scenario was not included in my original post):
Basically, only fill the null values if there are any.
Thank you again for your help!!
Best,
LloydW
- wdx223_Daniel3 years ago
Community Champion
NewStep=Table.Combine(Table.Group(PreviousStepName,{"Batch Index","Trans Index"},{"n",each let a=List.RemoveItems([Bank Account],{"",null}){0}? in Table.TransformColumns(_,{"Bank Account",each if _=null or _="" then a else _})},0,(x,y)=>Byte.From(x[Batch Index]<>y[Batch Index] or y[Trans Index]=1))[n])
- Anonymous3 years agoNot applicable
Absolutely AMAZING!! Thank you soooooo much!!!