Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
girish_talele
Creator
Creator

In Chart - Display Customers with Top n Percentage of Total Order Qty

Dear Experts,

We have a Data in Chart as given below,

Based on order qty, we can display (only) Top n numbers of customers using variable (say nTop).

Now we want to display Customers based on top "XX" percentage where percentage will be entered using variable.

CustomerOrderQty
Cust-1100
Cust-275
Cust-350
Cust-425
Cust-515
Total265

Please suggest whether we can achieve the same.

Regards,

Girish.

4 Replies
Roop
Specialist
Specialist

demo.png

Dimension Limits - Show values that accumulate to X%. Substitute the value for your variable.

girish_talele
Creator
Creator
Author

Dear Rupert,

It does not works, Capture.JPG.jpg

However, done some trick like -> Capture.JPG.jpg

Although thanks for looking into.

Regards,

Girish.

MK_QSL
MVP
MVP

try

IF(SUM(OrderQty)/SUM(TOTAL OrderQty)>=nTopPercentage,SUM(OrderQty)/SUM(TOTAL OrderQty))

or

IF(SUM(OrderQty)/SUM(TOTAL {1}OrderQty)>=nTopPercentage,SUM(OrderQty)/SUM(TOTAL {1}OrderQty))

its_anandrjs

You are using Top n Correctly

For top "XX" percentage you can use

If(sum(OrderQty) * 100 / Sum( TOTAL OrderQty) >= nTopPercentage ,sum(OrderQty) * 100 / Sum( TOTAL OrderQty))