Forum Discussion

Meghanshu's avatar
Meghanshu
Frequent Visitor
6 years ago
Solved

DAX Query for opening balance

Hi All, I have an inventory dataset having daily transactions and would like to calculate opening and closing balances. Snapshot of inventory data is given below.   I have calculated the closing ...
  • amitchandak's avatar
    6 years ago

    Meghanshu , the opening should be 1 less?

     

    Opening= CALCULATE(SUM(Table[Inventory Balance]),
    FILTER(ALL('Date'[Date]), 'Date'[Date] < MAX('Date'[Date])))