Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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 with the date I think I am right, I want to add the part that will only count bookings in the column "Status" it is either paid or confirmed.
Solved! Go to Solution.
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"
)
)
@Samhunt
One more version:
Measure1 =
CALCULATE (
DISTINCTCOUNT ( Bookings[Booking number] ),
YEAR ( Bookings[Check-out date] ) = 2023,
Bookings[status] IN { "Paid", "Confirmed" }
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
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"
)
)
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 3 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 12 | |
| 10 | |
| 8 |