cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bogdans Helper I
Helper I

Extract earliest date for distinct values in a separate column

Hello,

 

I have a dataset with "Task Name" and "Task Date". I want for each distinct task to create a column that will show the earliest date. See example data:

Task NameTask DateTask Earliest Date
A1/11/20191/11/2019
A1/13/20191/11/2019
A2/27/20191/11/2019
B3/24/20192/11/2019
B2/11/20192/11/2019
C5/5/20193/18/2019
C4/2/20193/18/2019
C3/18/20193/18/2019
C6/13/20193/18/2019

 

I want to create the "Task Earliest Date" in Power BI and show in a bar graph how many distinct tasks were created over time. What formula should I use for the new column?

1 ACCEPTED SOLUTION

Accepted Solutions
Super User IV
Super User IV

Re: Extract earliest date for distinct values in a separate column

@bogdans you can use following to get earliest date

 

Earliest Date = CALCULATE( MIN ( dd[Task Date] ), ALLEXCEPT(dd, dd[Task Name] ) )





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

Proud to be a Datanaut! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





View solution in original post

1 REPLY 1
Super User IV
Super User IV

Re: Extract earliest date for distinct values in a separate column

@bogdans you can use following to get earliest date

 

Earliest Date = CALCULATE( MIN ( dd[Task Date] ), ALLEXCEPT(dd, dd[Task Name] ) )





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

Proud to be a Datanaut! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





View solution in original post

Helpful resources

Announcements
‘Better Together’ T-Shirt Contest – Winner Announced!

‘Better Together’ T-Shirt Contest – Winner Announced!

And the winner is...

Announcing the New Spanish Forum

Announcing the New Spanish Forum

Do you need help in Spanish? Check out our new Spanish community section.

April 2020 Community Highlights

April 2020 Community Highlights

Info on our Super Users, MBAS content and badges, and updates to our support articles. - Read the full Community Highlights.

MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

Top Solution Authors
Top Kudoed Authors