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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
jhenderson525
Frequent Visitor

Calculate number of days open from 3 different milestone dates

 

Issue IDIssue Discovery DateQA Approval DateIssue CloseoutDays Open
15/1/20225/2/20225/4/20223
25/1/20225/5/20225/7/20226
35/5/20225/12/2022 7
45/13/20225/14/2022 1
55/10/2022  8
65/16/2022  2

(current date is 5/18/2022)

 

Hi, a newbie here. 

I'm trying to capture the number of days an issue has been open, with the date progressing through three different milestones. Issue Discovery Date, QA Approval Date, and finally Issue Closeout.

 

My thoughts went to something like:

If Issue Closeout is true, then Closeout minus Discovery = Days Open.

If Closeout is false, then QA Approval – Discovery = Days Open.

If Close and QA Approval is false, then Current Date – Discovery Date = Days Open.

 

So I have 2 questions (sorry). First, is this the right approach? Second (whether it is or is not the correct approach), any suggested solutions?

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@jhenderson525 , a new column

 

datediff([Discovery Date], coalesce([Closeout date], [QA Approval Date], today()) , day)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
jhenderson525
Frequent Visitor

@amitchandak Thank you! This solves my problem.

 

I am realizing i have two Days Open periods i need to record. An active open date period and an inactive period. Ill try to figure that out on my own but this helps greatly. Thanks again!

amitchandak
Super User
Super User

@jhenderson525 , a new column

 

datediff([Discovery Date], coalesce([Closeout date], [QA Approval Date], today()) , day)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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.