Forum Discussion
Anonymous
2 years agoNot applicable
How to get second lowest value from below table
Hi Team,
Can you please help me on below table to get second lowest value:
A as 2000 and B as 3000
I have tried below dax but getting lowest value and here there is no filter to be selected.
Test =
VAR _MinAll = MINX(all('Sales'),'Sales '[values]) RETURN CALCULATE(MINx('Sales ,'Sales '[values]),''Sales '[values]>_MinAll)
| category | value |
| A | 1000 |
| A | 2000 |
| A | 3000 |
| B | 3000 |
| B | 5000 |
| B | 1000 |
2 Replies
- Greg_DecklerCommunity Champion
Anonymous Try:
Second Lowest Value Measure = VAR __Min = MIN('Table'[Value]) VAR __Table = FILTER('Table', [Value] > __Min) VAR __Result = MINX(__Table, [Value]) RETURN __Result - FreemanZSuper User
hi Anonymous
try to plot a table visual with category column and a measure like:
Measure =VAR _max =MAXX(data,data[value])RETURNMAXX(FILTER(data, data[value]<_max),data[value])