Forum Discussion

alecsonline's avatar
alecsonline
Icon for Helper I rankHelper I
8 years ago
Solved

Difficulties using VAR with a simple measure

Hi all, I am having not the expected result with this:   this formula works:   booked = var readingdatevar=[maxreadingdate] return CALCULATE(SUM(bookings[roomnumbers]);FILTER(booking[reservat...
  • Zubair_Muhammad's avatar
    Zubair_Muhammad
    8 years ago

    alecsonline

     

    VARIABLES are just a store of value. They do not store Expressions. So They are not dynamic like MEASURES

    So Once you define a VARIABLE it is stored as a VALUE
    So you are evaluating a fixed number when you are evaluating a VARIABLE

     

    i.e. something like this

     

    CALCULATE(150000;FILTER(bookings;booking[reservationdate]<readingdatevar))