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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
veerenpatil
New Contributor

Min,Max Date/ Value for set of rows

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

3 REPLIES 3
lbendlin
Esteemed Contributor III

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
APavlovs
Contributor

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 ๐Ÿ˜„

 

 

Helpful resources

Announcements
Users online (26)