Forum Discussion

Whitewater100's avatar
Whitewater100
Icon for Solution Sage rankSolution Sage
2 years ago
Solved

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 produ...
  • Anonymous's avatar
    Anonymous
    2 years ago

    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

     

     

    Best Regards

    Bof