Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
mik618
Helper I
Helper I

active at certain times

Hi there, 

 

I've been asked to do various reports looking at improvment and display this in a graph, one report is looking at confirming appointments, every appointment should be confirmed the date the appointment is made, so there is a person column, appointment ID, appointment date, appointment confirmed date columns;

 

Patientappointment_IDAppointment_DateAppointment_Confirm
    
1100001/01/202001/01/2020
1100101/02/202003/04/2020
2200101/03/202001/03/2020
3205001/03/2020null
4207501/03/202010/03/2020

 

I want a formula that will show in a graph the unconfirmed appointments by date, so for 01/03/2020 there would be 3 unconfirmed appointments. 

 

Really struggling with the DAX to get this right so any help would be greatly appreciated

 

Thanks 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

5 REPLIES 5
amitchandak
Super User
Super User

@mik618 , Refer article on a similar topic. The current employee is you pending confirmation

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

 

Hi @amitchandak 

 

Thats exactly what I am after, thanks!

jdbuchanan71
Super User
Super User

Hello @mik618 

Wouldn't it be 2 unconfirmed on 1/3?  Appointment 2001 the dates match.  Anyway, something like this should get you the count of rows where it doesn't match.

Unconfirmed Count = 
COUNTROWS(
    FILTER (Appointments, Appointments[Appointment_Date] <> Appointments[Appointment_Confirm])
)

Hi @jdbuchanan71 

 

Thanks for helping, it would be 3 unconfirmed at this date as id 1001 would still be outstanding, thats the problem I'm having it needs to be able to look at all unconfirmed appointments, not just the appointment dates, so we can look at any date in the last year or so and see how many were outstanding at that time. 

 

Thanks 

@mik618 Is your table only the unconfirmed appointments?  If so you can do a COUNTROWS (YourTable), pull the appointment date into the chart and the measure into the values and see the unconfirmed appointments by date.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.