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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

No of days based on Project Status

Hi all, I have a table with date and project status which has "On-Hold, 'In-Progress" and "Completed". Based on the date field, I want to get only the project with status "On-Hold" and "In-Progress" that has the oldest date(Min Date I assume), and also have the count of the number of days from the date file till present.

Here is the sample data;

  
  
Overall Project StatusInitial Contact Date
On-Hold14-Nov-22
In-Progress14-Nov-22
In-Progress14-Nov-22
In-Progress14-Nov-22
In-Progress14-Nov-22
On-Hold14-Nov-22
On-Hold14-Nov-22
On-Hold29-Sep-22
Completed6-Jan-22
Completed14-Feb-22
Completed26-Jan-22
In-Progress14-Nov-22
On-Hold14-Nov-22
On-Hold14-Nov-22
On-Hold29-Sep-22
Completed6-Jan-22
Completed14-Feb-22
Completed26-Jan-22

 

The final result should be something like:

ninimoke_0-1671219033672.png

 

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

@Anonymous 

Oh sorry 

you can try

Initial Contact =
CALCULATE ( MIN ( 'Table'[Contract Date] ), KEEPFILTERS ( 'Table'[Project Status] IN { "On-Hold", "In-Progress" } ) )

View solution in original post

3 REPLIES 3
tamerj1
Super User
Super User

@Anonymous 

Oh sorry 

you can try

Initial Contact =
CALCULATE ( MIN ( 'Table'[Contract Date] ), KEEPFILTERS ( 'Table'[Project Status] IN { "On-Hold", "In-Progress" } ) )

tamerj1
Super User
Super User

Hi @Anonymous 

please use

Initial Contact =
MIN ( 'Table'[Contract Date] )

 

Number of Days =
DATEDIFF ( [Initial Contact], TODAY ( ), DAY )

Anonymous
Not applicable

Hi @tamerj1 , thanks for the reponse, in this case I am looking to show only 2 records as per my first post(one for on-hold and onr for in-progres) I am not totally sure how to achieve that

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.