Save File CSV - empty last row

I use a Report to save a CSV. This is my txt template:

<<Start: ORDERBY(SELECT(TimeTracking[Key] , [Date] = TODAY()-1) , [Employee_In] , FALSE , [In])>>
<<[Employee_In]>>;1;<<TEXT([Date],"dd.mm.yyyy")&" "&[In]>>;3;2
<<End>>
<<Start: ORDERBY(SELECT(TimeTracking[Key] , [Date] = TODAY()-1) , [Employee_In] , FALSE , [In])>>
<<[Employee_In]>>;1;<<TEXT([Date],"dd.mm.yyyy")&" "&[Out]>>;3;2
<<End>>

This is working perfectly. But: I always get an empty last row:

3X_6_a_6a403d18502aa9f8ebd3d71621508ae2ebc19f8b.png

How can I get rid of that empty row?
We import this CSV file in our system and itโ€™s getting confused because of this empty row

Solved Solved
0 11 344
1 ACCEPTED SOLUTION

@Bahbus Thank you very much for that hint. I found a workaround to get rid of the empty row.

<<Start: ORDERBY(SELECT(TimeTracking[Key] , [Date] = TODAY()-1) , [Employee_In] , FALSE , [In])>>
<<[Employee_In]>>;1;<<TEXT([Date],"dd.mm.yyyy")&" "&[In]>>;3;2
<<End>>
<<Start: TOP(ORDERBY(SELECT(TimeTracking[Key] , [Date] = TODAY()-1) , [Employee_In] , FALSE , [In]),
COUNT(SELECT(TimeTracking[Key] , [Date] = TODAY()-1))-1)>>
<<[Employee_In]>>;1;<<TEXT([Date],"dd.mm.yyyy")&" "&[Out]>>;3;2
<<End>>
<<Start: LIST(INDEX(ORDERBY(SELECT(TimeTracking[Key] , [Date] = TODAY()-1) , [Employee_In] , FALSE , [In]),
COUNT(SELECT(TimeTracking[Key] , [Date] = TODAY()-1))))>>
<<[Employee_In]>>;1;<<TEXT([Date],"dd.mm.yyyy")&" "&[Out]>>;3;2<<End>>

The middle part produces all rows, except the last row.

The last part produces only the last row.
By putting the <<End>> tag directly to the end, it will not produce a new line.

@Steve should I report this to AppSheet support so they could fix this โ€œadding a new lineโ€ bug?

View solution in original post

11 REPLIES 11
Top Labels in this Space