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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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) )