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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to add Aggregate data

hi,

I want to use aggregate row to distinct data in straight,just like bellow:

1530016818(1).jpg

But i found the straight table's  aggregate  can't do this,it can't use expression to distinct repeating data。Column1 is a dimension,used and subtotal is expression.So i want to add a aggregate  row  at the bottom by using expression to distinct repeating data.

Am i right ? and Who can help me?

Thks

23 Replies
ogautier62
Specialist II
Specialist II

Hi,

did you try ?

is this what you want ?

Anonymous
Not applicable
Author

Hi,

Sorry to bother you,i have a question.


i have some expressions,one of them is subtotal, and like below:

1530677773(1).jpg


i have written ‘count(user)’  in subtotal expression,and this expression can enable repeating data.


If i use dimension total like below:

1530677574(1).jpg

Where do i write script like ‘countil(distinct user)’ ?

Do you understand me ?

ogautier62
Specialist II
Specialist II

HI,

If I understand :

you want count for each line, and count distinct as subtotal ?

if so : in subtotal expression write :

if(dimensionality()=0,count(distinct user),count(user))

so subtotal 6, and not 7 because of a duplicate

regards

Anonymous
Not applicable
Author

Hi,

yes,just it is what i want.

Thank you!

I will try again.