Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register 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"
)
)
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
10 | |
10 | |
9 | |
9 |
User | Count |
---|---|
20 | |
13 | |
12 | |
11 | |
8 |