Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I have a set of data for customer appointments
Table 1 is the customer fact table (name, id, etc.)
Table 2 is the appointment data (id, appointment date, appointment status)
I have a measure that calculates the next future appointment
Measure =
Solved! Go to Solution.
I'm going to assume that the id column links the two tables, but go ahead and substitute whatever you need.
Customers with no Next Appointment =
var AllCustomers = VALUES(Table1[CustomerID])
var customersWithAppointment = SELECTCOLUMNS(FILTER(Table2, Table2[Appointment Date] >= TODAY()),
"customers", Table2[id])
RETURN COUNTROWS(EXCEPT(AllCustomers, customersWithAppointment))
I'm going to assume that the id column links the two tables, but go ahead and substitute whatever you need.
Customers with no Next Appointment =
var AllCustomers = VALUES(Table1[CustomerID])
var customersWithAppointment = SELECTCOLUMNS(FILTER(Table2, Table2[Appointment Date] >= TODAY()),
"customers", Table2[id])
RETURN COUNTROWS(EXCEPT(AllCustomers, customersWithAppointment))
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 |
---|---|
11 | |
10 | |
10 | |
9 | |
8 |
User | Count |
---|---|
17 | |
13 | |
12 | |
11 | |
8 |