Forum Discussion

vsslasd1's avatar
vsslasd1
Icon for Helper III rankHelper III
5 years ago
Solved

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.
 
  • var min_date = Minx(Filter('WIP-ALL','WIP-ALL'[Period]<>"Current"),DateValue('WIP-ALL'[Period]))

1 Reply

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