Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
divyanshraghuvanshi
Partner - Contributor
Partner - Contributor

Number of Customer giving 80% of Sales in KPI Object

Hi All,

I need to show the Number of customer giving me 80% sales in KPI Object. 

 

Labels (2)
1 Solution

Accepted Solutions
Anil_Babu_Samineni

@divyanshraghuvanshi Perhaps this

Count(distinct Aggr((Num(Sum(Sales)/Sum(TOTAL Sales), '#.#0%'))=Num(0.8, '#.#0%'), customer))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

4 Replies
qv_testing
Specialist II
Specialist II

like this

COUNT({<Customer={"$(=SUM(Sales)/SUM(Total Sales)>0.8"}>}Customer)

Anil_Babu_Samineni

@divyanshraghuvanshi Perhaps this

Count(distinct Aggr((Num(Sum(Sales)/Sum(TOTAL Sales), '#.#0%'))=Num(0.8, '#.#0%'), customer))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
divyanshraghuvanshi
Partner - Contributor
Partner - Contributor
Author

Hi Anil Babu Samineni,

I  wanted to display name of that customers also in KPI . Can you please help me on that ?

Customer Name who has contributed to 80 % of Sales 

Anil_Babu_Samineni

@divyanshraghuvanshi Please have a look with these functions to get customer names as well.

FirstSortedValue - Script Function | Qlik Sense for Windows Help

Concat - script function | Qlik Sense on Windows Help

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful