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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Amine
Partner - Contributor
Partner - Contributor

Set Analysis to Script expression

Hello every body

I want to determinate the Density of each customer. I achieve it with the Set analysis, but i want it in the Script load as a column called DN

Count(distinct {<CA = {">0"}>}ID_CLIENT) / count(distinct all ID_CLIENT)

Thanks

2 Replies
sunny_talwar
MVP
MVP

Is this over a certain dimension/s (just like you would see it in a table object with the dimension/s) or do you need the overall value (just like you could see if you put the above expression in a KPI object)
sergioskv
Contributor III
Contributor III

HI!
You need aggregate this expression on field/fields.
Us it with "Group By".