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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
vj82reddy
Frequent Visitor

DAX Min Date of Min Value

Hello Folks,

here im trying to write a DAX expression,

DateVisbility
2022-06-26  08:00300
2022-06-26  09:00100
2022-06-26  10:00200

 

i would like to retrieve MIN Date for MIN Visibility

which translates to SQL as below,

 

select MIN(Date) from table where visibility =(select MIN(visibility from Table)

can you sugest the DAX query (expected Value MinDate 2022-06-26 09:00)

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@vj82reddy ,

New measure =

var _min = minx(allselected(Table), Table[Value])

return

minx(filter(Table, Table[Value] = _min ), Table[Date])

 

or

 

 

New measure =

var _min = minx(allselected(Table), Table[Value])

return

minx(filter(allselected(Table), Table[Value] = _min ), Table[Date])

View solution in original post

2 REPLIES 2
vj82reddy
Frequent Visitor

Thank you very much this worked

amitchandak
Super User
Super User

@vj82reddy ,

New measure =

var _min = minx(allselected(Table), Table[Value])

return

minx(filter(Table, Table[Value] = _min ), Table[Date])

 

or

 

 

New measure =

var _min = minx(allselected(Table), Table[Value])

return

minx(filter(allselected(Table), Table[Value] = _min ), Table[Date])

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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