cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
usman96
Helper II
Helper II

Find the earliest date in a record

I have 2 columns 

 

dt.JPG

 

I need to pick the subjects from unique dates when it appears

so for exampel , from above data , A should be picked

 

 

 

 

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

Seems like you could just use MIN([Subject]), if you put your date field in a table and that measure, should do the trick I think, if I understand what you are going for.


@ me in replies or I'll lose your thread!!!
Check out my External Tool for Power BI Desktop! Microsoft Hates Greg's Quick Measures
YouTube Channel! Microsoft Hates Greg
Check out my latest book!

View solution in original post

4 REPLIES 4
petrovnikitamai
Resolver V
Resolver V

try to add column.

new column  = minx(filter(table;earlier(date)=date);subject)

what if i have two fields? 
Subject A subject B

Greg_Deckler
Super User
Super User

Seems like you could just use MIN([Subject]), if you put your date field in a table and that measure, should do the trick I think, if I understand what you are going for.


@ me in replies or I'll lose your thread!!!
Check out my External Tool for Power BI Desktop! Microsoft Hates Greg's Quick Measures
YouTube Channel! Microsoft Hates Greg
Check out my latest book!

View solution in original post

what if i have two fields? 
Subject A subject B

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

November Power BI Update 768x460.png

Check it Out!

Click here to read more about the November 2021 Updates!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.