Order of items email report

Hi,

I have a report that sends an email and orders driver delivery drops by number. Each delivery is assigned a number from 1 onwards.

The order comes out fine until it gets to number โ€œ10โ€ which it places after โ€œ1โ€ rather than โ€œ9โ€. I have changed the order numbers to 10, 20 , 30 etc and still the same result. 100 comes after 10.7

Expression is

<<Start:Orderby(Running Sheet 24[Outlet No],[Running Sheet Report Calc],FALSE)>>

Any ideas why? Pic attached

thanks

Phil

Solved Solved
0 5 194
1 ACCEPTED SOLUTION

Wrap the SELECT() expression in ANY(), then make sure the column type is Number.

View solution in original post

5 REPLIES 5

Is [Running Sheet Report Calc] set to a column type of number?

Hi Simon, Yes itโ€™s set to Number

Would SORT() work better? I couldnโ€™t work out how to write the expression.

thanks

Phil

Hi, Sorry

It is set to list. It is a virtual column with this expression

SELECT(Orders[User Stop],AND([Outlet No]=[_THISROW].[Outlet No],IN([Delivery Date],Running Sheet 2[Delivery Date]),OR([Order Status]=โ€œOpenโ€,[Order Status]=โ€œExported To Xeroโ€,[Order Status]=โ€œOpen (Unarchived)โ€)),IN([Route],Running Sheet 2[Route]))

If I change it to number - how do I cange the expression to get the corrrect result as in number from the expression above

thanks

Phil

Wrap the SELECT() expression in ANY(), then make sure the column type is Number.

That worked

thank you

phil

Top Labels in this Space