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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
edozzy
New Member

Forward look planning for appointments

I have a table in Power BI with an "appointment end date" column with multiple range of different end dates.

I have managed to create an extra column with specified as follows 

Days Remaining = Datediff(today(), 'Live Campaigns List'[Appointment End Date], DAY)
This has created a column which has calculated the difference in days format between today and the Appointment End Date entries. This query works which is great but I have few more things I am unsure how to do. 

I also want to create a Days Overdue list but the calculation does not work. I am using the following column calculation 
Days Overdue = DATEDIFF(TODAY(),SELECTEDVALUE('Live Campaigns List'[Appointment End Date]),DAY) and I get an error. 
What am I doing wrong?
 
Next I want to specify that the days remaining are Monday to Friday working days only. How can I do that? And also same for the overdue days column? 
 
Last, I want to automatically highlight those days that are  at the 9 months (ie 273 days) or 12 months (360 days) mark distance of the date in the 'appointment end date' from today. This is linked to forward planning for appointments and knowing when we start planning campaigns. Those dates that fall within dates from 9 to 12 months (or under) of the relevant end date need to be listed in a visualisation table. Hope that makes sense. 
 
Let me know if you can help. 
 
Thanks 
 
 

 

1 REPLY 1
Syk
Super User
Super User

You just want a new column that is basically the "appointment end date" + 9-12 months?

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors