Forum Discussion
Calculating Remaining Stock
Hi,
I'm having trouble with an creating a measure to determine remaining stock left for a given product during a given time period.
I have:
SalesTable (order line level, with Style ID, Order Date and QTY Shipped)
StyleTable (Each Style ID with their initial stock allocation)
Dim Date
I would like to be able to show on a bar graph, how much stock is left for a given product.
I figure I need to create a measure which shows the number of Sales to Date, one that shows total allocation, and a third measure which subtracts the Sales to Date from the Allocation.
Any help would be immensely appreciated.
1 Reply
- v-danhe-msftMicrosoft Employee
Hi Jhelfand ,
Could you please post some simple sample data and your desired result to have a test if possible? 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
Regards,
Daniel He