Forum Discussion

veerenpatil's avatar
veerenpatil
Regular Visitor
5 years ago

Min,Max Date/ Value for set of rows

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

3 Replies

  • 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.

    • veerenpatil's avatar
      veerenpatil
      Regular Visitor

      Thanks for your response.data

      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
  • Hi veerenpatil 

     

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

     

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