Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Jhelfand
Regular Visitor

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 1
v-danhe-msft
Employee
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

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.