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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
veerenpatil
Regular Visitor

Min,Max Date/ Value for set of rows

i want create measure / column to get Min (Creation Date) for Selected filter.

3 REPLIES 3
APavlovs
Resolver II
Resolver II

Hi @veerenpatil 

 

This measure does the trick 😉
 
Daysbetween = DATEDIFF(MIN('Table'[Creation Date]),MAX('Table'[Completion Date]),DAY)
 
APavlovs_0-1630571108343.png

 

Did I answer your question? Mark my post as a solution 🙂

If I gave you an idea on how to solve this otherwise give my post some Kudos 😄

 

 

lbendlin
Super User
Super User

Good.  What have you tried and where are you stuck?

Please provide sample data in usable format (not as a picture - maybe insert into a table?) and show the expected outcome.

Thanks for your response.datadata

here i am attching the Snapshot. 

there some projects running and each project has some tasks, where task has some creation and completion date. so here Project is a filter , when project selected i need to get the Min (Creation Date)

Max(Completion date) for the selected Project,  where i need to calucate the total no of days for the selected project : Max(Completion date) - Min (Creation Date).  please advise me how can i achieve the same.

 

S.NoProjectTaskIDAssign toCreation DateCompletion Date
1P.23P.23.1Anand02/07/202102/08/2021
2P.23P.23.2Pradeep03/07/202105/08/2021
3P.23P.23.3Charan04/07/202110/08/2021
4P.24P.24.1Pradeep01/07/202105/08/2021
5P.24P.24.2Venkat04/07/202104/08/2021
6P.24P.24.3Raman09/07/202103/08/2021
7P.25P.25.1Karthik10/07/202108/08/2021
8P.25P.25.2Patil11/07/202109/08/2021
9P.25P.25.3Veerendra12/07/202110/08/2021
10P.25P.25.4Karthik13/07/202115/08/2021

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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

Top Solution Authors
Top Kudoed Authors