Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
md_qlikview
Creator II
Creator II

Calculation For Top N

Hi Experts,

Is there any way by which i can get top N entity in the straight table eg. Top 10, and total that is displayed on top of that will be the total of only top 10 and not cumulative total of all.

Thanks in advance

6 Replies
Not applicable

Try Dimenssion limits

md_qlikview
Creator II
Creator II
Author

it gives cumulative total and not total of top n. i want total of only top n.

vivek_niti
Partner - Creator
Partner - Creator

Deselect the option 'Show others' from dimension limits. This will give you the total only for top values.

hariprasadqv
Creator III
Creator III

Hi,

Use Dimiension Limits and disable Totals in Expressions so that you get the desired output.\

Find the attachment.

jagan
Partner - Champion III
Partner - Champion III

Hi,

Try this Calculated Dimension

=If(Aggr(Rank(SUM(MeasureName), 4, 0), DimensionName) <= 10, DimensionName)

Example:

=If(Aggr(Rank(SUM(Sales), 4, 0), Customer) <= 10, Customer)


Regards,

Jagan.

timanshu
Creator III
Creator III

Please provide dimensions and expressions in report.