Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to Generate YTD Metrics with pivot table

Hi All, I have the following table:

TheMonth DayDate MemberId

2017-01-01 2017-01-02 1

2017-02-01 2017-02-02 2

2017-03-01 2017-03-02 1

2017-03-01 2017-03-03 3

And I want to use one Pivot table to show the total Members:

TheMonth, Members(count(distinct MemberId))

2017-01-01, 1

2017-02-01, 2

2017-03-01, 3

How to Achieve it? Thanks.

1 Reply
techvarun
Specialist II
Specialist II

try the below code as expression:

rangesum( above( Count(MemberId),0,2) )