Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Second Highest number in MAX function using DAX

I have a variable as below
VAR First_Higest_number = MAX( 'DF'[Number_Column] )
and I would like to find the Second_Higest_numberin DAX. How to get around with this ? many thanks in advance.

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

You might use the search first, as it seems to be a duplication
VAR Second_Higest_number = MINX ( TOPN ( 2, 'DF', 'DF'[Number_Column] ), 'DF'[Number_Column] )

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading