Forum Discussion
Matt_Gol
3 years agoHelper I
Finding the first value in column based on date or sequence
Hi everyone I have a challenge to find the first order number in a table when I apply a date slicer. The FIRSTNONBLANK() gets me back the first one by sorting them but I don't want to sort them, I ...
- 3 years ago
Matt_Gol Try this pattern:
Measure = VAR __Date = MIN('Table'[Date]) VAR __Table = FILTER(ALLSELECTED('Table'),[Date] = __Date) VAR __Result = MINX(__Table, [Order Number]) RETURN __Result
Greg_Deckler
3 years agoCommunity Champion
Matt_Gol Try this pattern:
Measure =
VAR __Date = MIN('Table'[Date])
VAR __Table = FILTER(ALLSELECTED('Table'),[Date] = __Date)
VAR __Result = MINX(__Table, [Order Number])
RETURN
__Result