Forum Discussion

Cadenze's avatar
Cadenze
Icon for Helper II rankHelper II
2 years ago
Solved

Combined conditional measure that depends on current date

I have a pickle that I'm struggling with and I need someone really competent in DAX to help me. I need one measure that is one thing if this month is selected, and another if we go back in time. It h...
  • Cadenze's avatar
    2 years ago

    I ended up with this construct that yielded the required result (in case anyone with the same problem visits this post):

    OpenamtNow =

    CALCULATE( SUM(OrderBook[Open amount]),LASTNONBLANK('Date'[Date],

    CALCULATE(SUM(OrderBook[Open amount]), FILTER( ALL('Customers'),1))

    ))