Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Expression as Dimension

Hello,

I have this expression:  count(distinct x)/Count(distinct TOTAL(x)).

And i would like to see have the results on dimension, however when i put this expression on dimension it gives me an error.

How can it be done?

Can you give me some pointers?

thank you

16 Replies
Anonymous
Not applicable
Author

aggr(count(distinct x)/Count(distinct TOTAL(x)),yourdimension1[, ...])

It ist not possible to use aggregation functions in dynamic dimensions without aggr(), because "the aggregation area" ist not clearly defined else

Anonymous
Not applicable
Author

Hello,

Thank you for your answer but i think that i have not explained well myself.

this expression count(distinct x)/Count(distinct TOTAL(x)).  gives me the  percentage of clients.

and i want to have that on dimension.

With your formula it doesn´t give me the data i need.

Thank you.

Anil_Babu_Samineni

Can yiu share the application which denomstrates the issue and share expected output please

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
Anonymous
Not applicable
Author

aggr(nodistinct count(distinct x)/Count(distinct TOTAL(x)),x)

Anonymous
Not applicable
Author

Hello,

with your formula it gives me this graph

pareto.JPG

Anonymous
Not applicable
Author

could you post some data in excel format please?

Anonymous
Not applicable
Author

Sure,

here you have

Anonymous
Not applicable
Author

please check this

Anonymous
Not applicable
Author

Hello,

Thank you for your help,

on expression i want the sum of sales accumulated. with that there is no problem.

on dimensions i would like the percentage of clients. so it goes from 0 to 100.

i do not know if it can be done.

thank you in advance