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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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