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

TOPN() does not seem to do what the documentation says

I discovered that when I have a column with 20 values of which 10 positive and 10 negative and I write a measure asking for the TOPN(15, DESC), I only get the 10 positive values.
Similarly, TOPN(15, ASC) only give the 10 negative values while it should also give the 5 smallest positive values for the function to make sense.

Am I alone in struggling with this? Is it a bug and what is a possible workaround.

Thanks in advance

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

Tried: TOPN(15, DESC)
Expected: 15 entries instead of the 10 I got

>Solution :

You can use RANKX as a workaround.

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