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

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.

Reply
Whitewater100
Solution Sage
Solution Sage

Calculating Running Total of Inventory based on store open date.

Hello Fabric Community:

I had received some help from Ibeddlin on some RT and last stock day calculations in this file. What I am hoping to get is a table/matric that shows each store, thier products and current inventory with the amount remaining onhand. The tricky part is I'm hoping not to scroll thru all the dates inbetween. My page one is an example of the results I'm looking to get. Thank you Idedblin and all others https://drive.google.com/file/d/1uq5bLdv5kXkjz3cQ07G8iKNJ0TGkHDOH/view?usp=sharing for your help!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Whitewater100 ,

 

I’ve made a test for you reference:

1\Create a new measure

 

Bal_On_Hand = sum(WHINV[Qty_On_Hand])-CALCULATE(

    SUM('Orders'[Qty]),REMOVEFILTERS('Orders'),

    Orders[Loc_ID]<=Max(Store_Location[Loc_ID]) && Orders[Prod_ID]=max(Products[Prod_ID])

)

 

2\Add a table

vbofengmsft_0-1726197390207.png

 

 

Best Regards

Bof

View solution in original post

3 REPLIES 3
Whitewater100
Solution Sage
Solution Sage

Good Day Bof!

Thank you for providing this measure. I think it will be great, but have one question. If several stores have the same open date, will the measure still work or would that require a revision? 

Thank you for your reply!!

Anonymous
Not applicable

Hi @Whitewater100 ,

 

I believe the formula will still be effective, as it is sorted by Loc_ID.

 

Best Regards,

Bof

Anonymous
Not applicable

Hi @Whitewater100 ,

 

I’ve made a test for you reference:

1\Create a new measure

 

Bal_On_Hand = sum(WHINV[Qty_On_Hand])-CALCULATE(

    SUM('Orders'[Qty]),REMOVEFILTERS('Orders'),

    Orders[Loc_ID]<=Max(Store_Location[Loc_ID]) && Orders[Prod_ID]=max(Products[Prod_ID])

)

 

2\Add a table

vbofengmsft_0-1726197390207.png

 

 

Best Regards

Bof

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.