PDF: fortlaufende Zeilennummerierung auf dem Orderby() basiert

In meinen PDF-Vorlagen habe ich den Arbeitsausdruck für die fortlaufende Zeilennummerierung. Beim Hinzufügen eines Orderby()-Ausdrucks habe ich trotz Dutzender Versuche nicht festgestellt, dass die fortlaufende Zeilennummerierung auf dem Orderby() basiert. Finden:

 

 

<<Start:Orderby(Nicht_Volljährig[MitgliedID],[Geburtsdatum])>><<COUNT(SPLIT(ANY(SPLIT((" , " & Nicht_Volljährig[MitgliedID] & " , "),(" , " &[MitgliedID] & " , ")))," ,"))>>

 

 

Solved Solved
0 4 285
1 ACCEPTED SOLUTION

If understanding of your requirement is clear, you could try the expression below

<<Start:Orderby(Nicht_Volljährig[MitgliedID],[Geburtsdatum])>><<COUNT(SPLIT(ANY(SPLIT((" , " & (Orderby(Nicht_Volljährig[MitgliedID],[Geburtsdatum])) & " , "),(" , " &[MitgliedID] & " , ")))," ,"))>>

View solution in original post

4 REPLIES 4

Marc_Dillon_0-1692563705656.png

Kind of hard to tell what you're doing here. I see you're trying to order the START expression by the [geburtsdatum] column, but I'm very confused by the template expression that you're displaying within the START. Try this to confirm that the ordering works: 

<<Start:Orderby(Nicht_Volljährig[MitgliedID],[Geburtsdatum])>> 
<<[MitgliedID]>>  :  <<[Geburtsdatum]>>
<<END>>

If understanding of your requirement is clear, you could try the expression below

<<Start:Orderby(Nicht_Volljährig[MitgliedID],[Geburtsdatum])>><<COUNT(SPLIT(ANY(SPLIT((" , " & (Orderby(Nicht_Volljährig[MitgliedID],[Geburtsdatum])) & " , "),(" , " &[MitgliedID] & " , ")))," ,"))>>

Vielen Dank, das funktioniert sogar perfekt in einer gruppierten Vorlage mit einem Start: Filter-Ausdruck.

Meiner Meinung nach sollte dies mit einer Funktionserklärung in "Tipps &; Tricks" veröffentlicht werden!

You are welcome. Good to know it works for you.

The original expression you are using for serial number is anyway from @Steve in the tip below.

INDEXOF() - Google Cloud Community

You were getting incorrect serial numbers because while you applied the ORDERRBY() on the basic start expression , you were not using the ordered list in the serial number generating expression as below

COUNT(SPLIT(ANY(SPLIT((" , " & Nicht_Volljährig[MitgliedID] & " , "),(" , " &[MitgliedID] & " , ")))," ,"))

I just requested you to substitute that part with an ordered list as suggested below:

COUNT(SPLIT(ANY(SPLIT((" , " & (Orderby(Nicht_Volljährig[MitgliedID],[Geburtsdatum])) & " , "),(" , " &[MitgliedID] & " , ")))," ,"))

 

Top Labels in this Space