Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi experts,
Im trying to calculate the lead time for purchase orders (PO). Under each purchase orders are SKUs with their Order date and received date. For SKUs that havent been received yet, I want to show a SUGGESTED LEAD TIME (DAYS) where, suggested lead time (days) = their max lead time from all their previous POs. Thank you so much in advance for your help.
Here is a snapshot of what i am expecting:
Thank you!
Solved! Go to Solution.
Hi, @Anonymous
please check the below picture and the sample pbix file's link down below, whether it is what you are looking for.
The dax measure is in the sample pbix file.

https://www.dropbox.com/s/5j2vdelh8vitsux/katvaldez.pbix?dl=0
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Hi Jihwan_Kim,
I converted your measure to a calculated column (Column = [Measure]) and it showed the values im looking for even after applying filters.
THANK YOU!
Hi, @Anonymous
please check the below picture and the sample pbix file's link down below, whether it is what you are looking for.
The dax measure is in the sample pbix file.

https://www.dropbox.com/s/5j2vdelh8vitsux/katvaldez.pbix?dl=0
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Hi Jihwan_Kim,
Thank you so much for taking the time to work on this. I greatly appreaciate it. Your solution worked, it is filling in blanks with the max lead time. However, when i apply a filter Status = Preparation, the suggested lead time (days) values are not showing.
Before filter
After applying filter
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 21 | |
| 10 | |
| 8 | |
| 8 |