Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi everyone!
Posting this question for my inventory tracking project.
Summary: I would like to build a tracker/dashboard to track my inventory expiration risks based on forecasted usage.
Inputs:
1. I have one table for forecasted usage on a weekly basis for all SKUs. Similar to the table below.
2. On a separate table, I have an inventory balance of all of these SKUs, with different batch codes and different expiration dates similar to the table below.
That being said, my desired outputs are:
1. Flag expired items automatically (can be easily done).
2. Be flagged if there is an expiration risk meaning, total usage over X weeks will not be enough to deplete the remaining inventory by its expiration date. Need to keep in mind that First to Expire, First to consume. I need to deplete first those to expire first before consuming the next batch.
3. Quantify the risk: How much will not be consumed/will expire based on forecast usage. Keeping in min the First to Expire, First to Consume concept.
Sample output table:
Hope I made the problem clear.
I'm really stuck at this project and don't know where to start so I would very much appreciate any help.
Thank you!!!
I have an identical problem, has anyone been able to resolve?
Hi all, any luck with this solution?
@Anonymous did you get a solution for this? I am also stuck with the same issue.
hi, I have EXACTELY the same issue. I was wandering if u found a soultion to your project? thx!!
First, Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
Second, I think you are looking for something along the lines of Days of Supply:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Days-of-Supply/m-p/635656#M318
Hi @Greg_Deckler ,
I'm valuating the opposite which is excess supply.
I'm stuck with the problem considering that:
1. Different batches and different expiration dates per material,
2. I need to factor in First to Expire, First to Use concept.
A straightforward calculation of Total Usage - Inventory will not work for the project. 😞
Hi @Anonymous ,
Could you show us your .pbix file or sample data if there's nothing confidential?You can upload it to onedrive and share us with the link.
Hi @v-kelly-msft ,
Here's the sample file for your reference
https://1drv.ms/x/s!Al4XUPsgrRwrzEfkjaedUIEPpWql?e=7m8TsP
Thanks!
JCPO
Hi @Anonymous ,
So for "status":
IF('Table'[date]>'Table'[Expiration date]&&'Table'[On hand Inventory]>0,"overstock",BLANK())
What date should I use to compare with 'expiration date'?Today()?
For"Inventory stock",how should I get the result?
Your sample data is really a bit complex,better show me a clear logic.
hi, since @Anonymous ist not active I will try to put some logic.
Expiration date should pe a parameter until when the goods can be used.
In case that FC qty. until the expiration day is lower than stock on hand, you will end up with excessive stock that has to be evaluated. In this case from the day of expiration you need to switch to the next exp. date batch of the same product if existing and continue to supply according to the forecast.
In the opposite case where FC qty. ist higher than qty. expirarion day simply switch to next batch if available when stock ist utilised.
Hope it helps. br Mila
@Anonymous thank you so much for your response.
Your logic makes sense. The next challenging part is how will the dax be around this logic?
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 35 | |
| 34 | |
| 27 |
| User | Count |
|---|---|
| 136 | |
| 99 | |
| 73 | |
| 66 | |
| 65 |