web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Sort Bin code in Pick Instruction report

(0) ShareShare
ReportReport
Posted on by 67

Hi everybody,

I have a customer who wants to see a certain order of the bins on his pick instruction.

Using the bins ranking is not an option, as they simply want to press print from the sales order.
Then the order of the bins should be in the correct order.
I can sort alphabetically from Z to A, they first want to see the W for store (Dutch), then the K for cooling and then the D for freezer.
2020_2D00_11_2D00_10_5F00_12h32_5F00_46.png
But the problem is that after the letter, he has to sort the numbers numerically.
What I want to achieve is the following:
2020_2D00_11_2D00_10_5F00_12h37_5F00_28.png
You can see that after the letter D comes first number 1 and then number .01. Followed by D2.08 and so on.

I am not very familiar with programming or using visual studio and stuff the like.
If anyone can show me the expression or formula that I can use in the Report Builder, I would be very grateful.
As indicated earlier, the customer simply wants to press the print button from the sales order and thus be able to print his pick instruction.

I sincerely hope that someone can help me further.

Thanks in advance
Greetings,

Melissa


  • Suggested answer
    Andy Sather Profile Picture
    Microsoft Employee on at

    Hello Melissa - This is probably more of a RDLC Dev questions.  Here is some information:

    Ref: stackoverflow.com/.../sorting-string-and-numeric-mix-values-in-ssrs

    Add three sorting parameters to group properties:

    Sort by: =CInt(IIF(Fields!ID.Value like "[0-9]*", 0, 1)) [A to Z] sorting

    Then by: =CInt(IIF(Fields!ID.Value like "[0-9]*", Fields!ID.Value, 1)) [A to Z] sorting

    Then by: =Fields!ID.Value [A to Z] sorting

    Ref: stackoverflow.com/.../ssrs-sort-by-number-part-of-string

    A formula like this might help:

    =System.Text.RegularExpressions.Regex.Replace(Fields!productcode.Value, "[^0-9]", "")

    A few others articles that might help:

    stackoverflow.com/.../ssrs-sorting-for-stringnumeric-values

    stackoverflow.com/.../sorting-string-numeric-values-in-ssrs-2008

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 664 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 446 Super User 2026 Season 2

#3
Teagen Boll Profile Picture

Teagen Boll 282 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans