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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
mhankila
New Member

Min date return other value

I would like to return the "Seq. #" that has the oldest "Date Open"

 

mhankila_0-1658418228441.png

 

ould like to return the "Seq.#" with the oldest "Open Date"

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@mhankila ,

 

Firstnonblankvalue(Table[date Open], Min([# Seq])

 

or

 

calculate(Firstnonblankvalue(Table[date Open], Min([# Seq]) , allselected())

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

@mhankila do you mean, the min date from all the rows? or by seq # wise.

 

If you want the min date of the column rows,

 

Then use below dax.

 

MinDate = CALCULATE(MIN([Date Open]), ALL(Table))

IF you want by Seq#

MinDate_By Category = 
CALCULATE(MIN(data[Date Open]),ALLEXCEPT(data,data[seq #]))

 

Do accept the solution if it fulfills your need.

if a seq# is present, i would like to return the seq# according to the open date column

amitchandak
Super User
Super User

@mhankila ,

 

Firstnonblankvalue(Table[date Open], Min([# Seq])

 

or

 

calculate(Firstnonblankvalue(Table[date Open], Min([# Seq]) , allselected())

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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