BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
agreekgod
Calcite | Level 5

My aim is to create a bar chart denoting the frequency of delivery times, to see whether most orders take one or two or three days etc to be delivered. I have the delivery times for all the orders. How do I find the quantity of orders which satisfy each delivery time using the Query Builder? Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
TomKari
Onyx | Level 15

1. If your delivery time is not a number of seconds, I suggest you convert it to that, as it will be easiest to work with.

2. Create a format for your durations, something along the lines of:

'00:00:00't - '23:59:59't = 'less than 1 day'

'24:00:00't - '47:59:59't = '1 to 2 days'

3. Apply your format, and when you run your bar chart it should group the observations by the format labels.

Tom

View solution in original post

1 REPLY 1
TomKari
Onyx | Level 15

1. If your delivery time is not a number of seconds, I suggest you convert it to that, as it will be easiest to work with.

2. Create a format for your durations, something along the lines of:

'00:00:00't - '23:59:59't = 'less than 1 day'

'24:00:00't - '47:59:59't = '1 to 2 days'

3. Apply your format, and when you run your bar chart it should group the observations by the format labels.

Tom

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1208 views
  • 1 like
  • 2 in conversation