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

LookupValue with a not equal to

Hello, 

I am trying to get a DAX variable to get the minimum value similar to the following:

 

var min_date=LOOKUPVALUE('WIP-ALL'[Period],[Period],"Current", Min('WIP-ALL'[Period]))
 
But instead of Period=Current we need anything except for "current"

What formula do I need to use to get the minimum value of "Period" in the above statement where Period<>"current.
 
1 ACCEPTED SOLUTION
vsslasd1
Helper II
Helper II

var min_date = Minx(Filter('WIP-ALL','WIP-ALL'[Period]<>"Current"),DateValue('WIP-ALL'[Period]))

View solution in original post

1 REPLY 1
vsslasd1
Helper II
Helper II

var min_date = Minx(Filter('WIP-ALL','WIP-ALL'[Period]<>"Current"),DateValue('WIP-ALL'[Period]))

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power BI October Update 2021.jpg

Power BI Release

Click here to read more about the October 2021 Release!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Teds Dev Camp Oct. 2021 768x460.jpg

Power BI Dev Camp - October 28th, 2021

Mark your calendars and join us for our next Power BI Dev Camp!