Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Count Expression?

I want Count of Customers that contribute 10% of cumulative volume.

Here I have Volume Expression like below

Volume Expression : sum({<AsOfPeriod = {'>$(=date($(VMaxAsOFPeriod)-$(VDaysForTrending))) <=$(=date($(VMaxAsOFPeriod)))'},

same_day={'Y'}>} METRIC_VAL)

Here i want to calculate Count of Customers that contribute 10% of cumulative volume.

can u plz give me idea on this.

6 Replies
PabloOrtiz
Partner - Creator
Partner - Creator

Hello, try this

count({<Customer = "=your_expression">} distinct Customer)

count({<Customer={"=sum({<AsOfPeriod = {'>$(=date($(VMaxAsOFPeriod)-$(VDaysForTrending))) <=$(=date($(VMaxAsOFPeriod)))'},

same_day={'Y'}>} METRIC_VAL)"}>} distinct Customer)

Not applicable
Author

Thanks for the reply

But here i want 10%,20%,30% contributed customers only for each expression

for example 10% contributed customer ---- 1 expr

                   20% contributed customer ---- 2 expr

etc

Anonymous
Not applicable
Author

Hi,

Did you try to use dimension limit in your graph?

You can select option to show only the first 10% for exemple

Not applicable
Author

Bobbyraj,

I want it in Expression not in dimension

Anonymous
Not applicable
Author

Yes but when you filter you dimension it will affect the expression.

In fact when you add option to select 10%, the graph will represent the dimension corresponding to the 10% of your expression

Not applicable
Author

Correct but here i am using a straight table with out any dimension and with only expression what i mentioned above in the question.