Forum Discussion

Michael92's avatar
Michael92
Frequent Visitor
1 year ago
Solved

DAX calculation

Hello all, I need to calculate the Stock - Request difference in the Matrix table. I always see only 3 days, yesterday, today and tomorrow. I need to calculate the current stock situation. I need to...
  • Michael92's avatar
    Michael92
    1 year ago

    Hello,

     

    thanks for your feedback. It gave me zero values ​​everywhere.

    But meanwhile i found a solution. This works for me:

    Difference =
        CALCULATE(
    SUM('Table'[Stock]) - SUM('Table'[Request]),FILTER(ALL(Date_table), Date_table[Date]<= MAX(Date_table[Date])))