Forum Discussion

Samhunt's avatar
Samhunt
Helper II
2 years ago
Solved

Need Help with Sax

Hello guys,    I want to count all different bookings that happened within a calendar year and have a specific status.    I used the following formula which is of course wrong 🙂 Up to the part w...
  • Dangar332's avatar
    2 years ago

    Hi, Samhunt 

    try below

    Measure =
    CALCULATE(
        DISTINCTCOUNT(
            Bookings[Booking number]),
          filter(
            all(Bookings[Check-out date],Bookings[status]),
            YEAR(Bookings[Check-out date]) = 2023 &&
            Bookings[status] ="paid" || Bookings[status] ="confirmed"
          )
    )