cancel
Showing results for 
Search instead for 
Did you mean: 

"Top N" Function in HANA

brian_keenan
Contributor
0 Kudos

How can I do a "top N" filter on a measure in a HANA model?

Accepted Solutions (1)

Accepted Solutions (1)

rindia
Active Contributor
0 Kudos

Hi Brian,

Do you mean how to filter the data in SQL or something else?

My assumption is the first one.

Below is the data and result. Column is a measure.

   

   

Regards

Raj

brian_keenan
Contributor
0 Kudos

Thanks Raj,

I was wondering if it is possible to do this in a calculation view or analytic view?  I dont see a TopN or rank function, maybe there is none.

rindia
Active Contributor
0 Kudos

Hi Brian,

Me too could not find the relevant CE function in SQLScript.

I thought CE_CALC would be of some help but all goes in vain.

Regards

Raj

Answers (1)

Answers (1)

Former Member
0 Kudos

Could You please tel me how to write TOP function in Query and is Subquery.????.. because Im Getting Error "Subuery Does not Support TOP" ...

Former Member
0 Kudos

Please create your own thread and paste the SQL