# 👀 Help - Avg Lead Time Measure

**URL:** <https://pug.phocassoftware.com/t/help-avg-lead-time-measure/2636>\
**Category:** Ask the Community\
**Tags:** howto, eclipse\
**Created:** [January 30, 2024, 10:47pm UTC](https://pug.phocassoftware.com/t/help-avg-lead-time-measure/2636 "2024-01-30T22:47:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![dan.klob](https://sea1.discourse-cdn.com/flex015/user_avatar/pug.phocassoftware.com/dan.klob/32/1504_2.png) [@dan.klob](https://pug.phocassoftware.com/u/dan.klob)\
**Post date:** [January 30, 2024, 10:47pm UTC](https://pug.phocassoftware.com/t/help-avg-lead-time-measure/2636/1 "2024-01-30T22:47:14Z")

</div>

Has anyone found a way to analyze PO lead times? a.k.a. average lead time? Here’s my quandary; in our purchasing database I can calculate the lead time days between the order and receive dates, but I’m struggling to find a way I can build that into a measure resulting in the average lead time.

---

<div class="post-metadata">

**Author:** ![Neil\_S](https://avatars.discourse-cdn.com/v4/letter/n/838e76/32.png) [@Neil\_S](https://pug.phocassoftware.com/u/Neil_S)\
**Post date:** [February 6, 2024, 10:46am UTC](https://pug.phocassoftware.com/t/help-avg-lead-time-measure/2636/2 "2024-02-06T10:46:09Z")

</div>

It would be a useful product enhancement to have different Rollup options for measures - e.g. AVG - which some other BI tools have.  
Bit convoluted but could you do a calculated measure -

- create a measure for count of the POs
- create a measure for sum of the lead time days
- then calculated measure to work out the Average - Sum of Lead time Days/Count of POs?  
I haven’t tested whether you could use default restrictions to hide the interim measures which aren’t useful and only show the user the calculated Average.  
Might depend whether you have multiple rows per PO - for the count you might need trans/count measure depending on this.

---

<div class="post-metadata">

**Author:** ![tim.janes](https://sea1.discourse-cdn.com/flex015/user_avatar/pug.phocassoftware.com/tim.janes/32/361_2.png) [@tim.janes](https://pug.phocassoftware.com/u/tim.janes)\
**Post date:** [February 6, 2024, 2:09pm UTC](https://pug.phocassoftware.com/t/help-avg-lead-time-measure/2636/3 "2024-02-06T14:09:35Z")

</div>

Hey @dan.klob ,

I’d like to offer a possible solution for this. It’s not exactly what you’re looking for, but I think it could at least give you similar information.

First, like you, I currently calculate my “days to receive” per PO line. I have uploaded a manual CSV document into DB Designer cross-referencing each “day” amount (1, 2, 3 . . . 25 . . . 172, etc.) to different “Day”, “Week”, and “Month” buckets that I’ve added as Dimensions:

![image](https://us1.discourse-cdn.com/flex015/uploads/phocassoftware/original/2X/c/c1bce68d0ecc3bcc2325c455d99f66bdb34859b5.png)

This gives us the ability to visualize lead times in a table. For example, here’s a table I have on a dashboard showing lead times for items received in the last 3 months (how long those lines took to come in), and it shows the % of lines received within different “Week” buckets:

![image](https://us1.discourse-cdn.com/flex015/uploads/phocassoftware/original/2X/3/3d30d4197004fb040101e928e925b1186267975d.png)

You could do this with _actual_ line counts, quantities, $, etc. instead of the % Share if you’d like. It really helps to visualize which buckets different vendors are falling into after I’ve Focused into a specific vendor. So, for example, I might be able to see that for Vendor X, only 3% of recent lines came in within a week of ordering them; whereas maybe 50% of lines took between 3-8 weeks to arrive, and maybe 20%+ took over half a year.

Hope this helps! Let me know if you have any questions.

---

<div class="post-metadata">

**Author:** ![dan.klob](https://sea1.discourse-cdn.com/flex015/user_avatar/pug.phocassoftware.com/dan.klob/32/1504_2.png) [@dan.klob](https://pug.phocassoftware.com/u/dan.klob)\
**Post date:** [February 8, 2024, 2:05pm UTC](https://pug.phocassoftware.com/t/help-avg-lead-time-measure/2636/4 "2024-02-08T14:05:46Z")

</div>

Neil, thanks for the thoughts and suggestions. Your last sentence is _exactly_ the issue I’m running up against. My purchasing/PO data goes down to the product level which makes it difficult to “roll up” the numbers. i.e. PO P12345 is listed in my database 3-times because there are three different line items. That means the lead time for all three products would get added together overinflating everything. I had the trans/count thought too (great minds) and tried it a few different ways but still couldn’t get the numbers to work out.

Different rollup options for measures could be a powerful enhancement. That’d get my vote.

---

<div class="post-metadata">

**Author:** ![dan.klob](https://sea1.discourse-cdn.com/flex015/user_avatar/pug.phocassoftware.com/dan.klob/32/1504_2.png) [@dan.klob](https://pug.phocassoftware.com/u/dan.klob)\
**Post date:** [February 8, 2024, 2:11pm UTC](https://pug.phocassoftware.com/t/help-avg-lead-time-measure/2636/5 "2024-02-08T14:11:50Z")

</div>

Tim, very cool idea. Thanks for the suggestion. I can see how having the ability to see those “buckets” for individual vendors and product lists would be helpful. Odds are good I’ll end up going down this road at some point.

---

<div class="post-metadata">

**Author:** ![Neil\_S](https://avatars.discourse-cdn.com/v4/letter/n/838e76/32.png) [@Neil\_S](https://pug.phocassoftware.com/u/Neil_S)\
**Post date:** [February 8, 2024, 2:56pm UTC](https://pug.phocassoftware.com/t/help-avg-lead-time-measure/2636/6 "2024-02-08T14:56:02Z")

</div>

Thought that might be the case, that makes it tricky. Rollup options would definitely be useful.  
Anything I have like that I have had to revert to dealing with in the data source itself, either by having an additional summary data set at the PO level or by trying to return the leadtime only against the first product line or splitting it over all the lines.  
Good luck, hope you can find a solution.

---

<div class="post-metadata">

**Author:** ![tim.janes](https://sea1.discourse-cdn.com/flex015/user_avatar/pug.phocassoftware.com/tim.janes/32/361_2.png) [@tim.janes](https://pug.phocassoftware.com/u/tim.janes)\
**Post date:** [February 9, 2024, 6:56pm UTC](https://pug.phocassoftware.com/t/help-avg-lead-time-measure/2636/7 "2024-02-09T18:56:01Z")

</div>

Let me know if you have any questions if/when you try to implement! It’s been very helpful in having informed discussions with our vendors, and also from an inventory ordering planning perspective.
