Results 1 to 16 of 16

Using DAX to return the Nth highest or lowest value

Threaded View

  1. #1
    Forum Contributor
    Join Date
    08-03-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    792

    Using DAX to return the Nth highest or lowest value

    Hello I have posted this on Mr Excel, but as yet have not had a successful answer;

    I want to get the Nth largest of smallest value using DAX , so in EXCEL you'd use LARGE or SMALL.

    HTML Code: 

    the suggestion I had was to use TOPN and MIN or MAX, so to return the 3rd hight value

    TOPN(3 , Table, Table[ Column Numbers ] )

    to return a table containing the top 3 values. then wrap in MIN to get the lowest , 3rd.
    I've tried variuos options none of which has worked,

      MIN(    TOPN(3 ,  Table, Table[  Column Numbers ] )  )

    MIN(    TOPN(3 ,  Table, Table[  Column Numbers ] ) , Table[Numbers]  )
    etc.

    Does anyone have any suggestions?

    Richard.
    Last edited by Dicken; 06-21-2022 at 01:24 PM. Reason: made mistake

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Look up to return in order highest to lowest
    By TrainerJ in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-16-2017, 08:50 AM
  2. [SOLVED] Sorting from highest value to lowest and return name and not value
    By thedrinkerparadox in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-16-2017, 12:04 PM
  3. Vlookup highest to lowest and return column name
    By Stuono in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-06-2016, 08:03 AM
  4. [SOLVED] Formula to find lowest/highest value in a column and return value to that cell
    By maryren in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-25-2013, 11:21 AM
  5. Return Highest & Lowest Value from Vlookup
    By ioswoody in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-13-2013, 01:05 AM
  6. Replies: 7
    Last Post: 03-14-2012, 12:28 PM
  7. Return highest/lowest 6 values from a list
    By thekingsoutlaw in forum Excel General
    Replies: 4
    Last Post: 01-21-2008, 04:36 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1