Forum Discussion
List.PositionOf of first not null value in a column
Yes, eg.:
for PD:
= Table.Skip(Quelle,each Text.Length(Text.Select([Column1],{"a".."z","A".."Z","0".."9"}))=0 or [Column1]=null)
edit: prompted by dufoq3 's use of ?? (coalesce) we can lose the or [Column1]=null by:
= Table.Skip(Quelle,each Text.Length(Text.Select([Column1]?? "",{"a".."z","A".."Z","0".."9"}))=0)
For AP (keeping the headers row for promotion):
= Table.Skip(Quelle,List.PositionOf(Quelle[Column1],"#",Occurrence.First,each Text.StartsWith(_,"#"))-1)
Dear AlienSx and p45cal,
Thank you both for your replies. Until now I thought the 'Table.Skip' does only accept numbers as input parameter... It now is really fascinating to see that MS did think about a much smarter way of allowing also conditions as input!
I already thought developing the number of rows by an index & filter solution is elegant, but no... Smarter is to use it all directly in Table.Skip.
Thank you both for that tremendous insight!!!
Best regards, Andreas