Forum Discussion

azaterol's avatar
azaterol
Helper V
4 years ago
Solved

AND condition help

Hello, everyone I need to add up all inventory for an item over the entire period by date. There are cases where the date and time are the same but occur one after the other. Here is my formula:   ...
  • ddpl's avatar
    ddpl
    4 years ago

    azaterol Then another option is add index from power query and then

     

    accumulated Stock = 
    calculate(
    sum('Goods logistics'[Stock]),
    FILTER(ALL('Goods logistics'),
    ('Goods logistics'[ArtID]=EARLIER('Goods logistics'[ArtID]) &&
    'Goods logistics'[INDEX] <= EARLIER('Goods logistics'[INDEX])

    )))