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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to write this expression

Hi All,

I have those data:

load * Inline

[DayDate,Cohort,MemberId

2013-1-1,1,1

2013-1-1,1,1

2013-1-1,1,1

2013-1-1,1,2

2013-1-1,2,1

2013-1-1,2,2

]

;

And I am using pivot table to show the active MemberId by DayDate by Cohort

The result will be

DayDate, Cohort, ActiveMembers

2013-1-1, 1, 2

2013-1-1,2, 2

For the ActiveMembers, I use count(distinct MemberId), What I want is add one more column to show the total ActiveMembers by DayDate by Cohort. that is 4

DayDate, Cohort, ActiveMembers

2013-1-1, 1, 2

2013-1-1,2, 2

Total:         4

What Shall I do?

Thanks.

2 Replies
zhadrakas
Specialist II
Specialist II

hello,

is this what you want?

regards

johanlindell
Partner - Creator II
Partner - Creator II

Make a sub-total for the "DayDate" column and make an Aggregate expression on the dimensions you want to aggregate by.

2016-10-27 10_48_27-QlikView x64 - [D__Dropbox (Vimur)_Qlikview_examples_273826.qvw_].png