Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
cathysmith
Partner - Contributor
Partner - Contributor

Pivot Table All Dates in a Range With or Without Data

Hello!  
I need some help on creating a pivot table based on a StartDate and an EndDate. The columns should display all dates within the date range and the rows are the count of clients that have a date_added for each date.  Currently I'm only getting dates that have clients.  If the date does not have a client it does not display at all.  
 
Here is an example of what I'm looking for:
StartDate: 1/1/2019
EndDate  : 1/5/2019
 
Results:
Dates                      1/1/2019    1/2/2019    1/3/2019    1/4/2019    1/5/2019
Client Count            30                  5                    0                    0                   50
Labels (2)
3 Replies
lorenzoconforti
Specialist II
Specialist II

Hi

I would implement a master calendar (always good to have when you are working with dates); then in your pivot table enable null and blank values; see attached

DateRange.png

Lorenzo

Madhab77
Contributor III
Contributor III

Hi Loren,

In this Pivot table, how can we achieve the functionality to have button or drop down selection for Ranges, like Last 10 days, Next 10 days, Last Month and Current Month?

 

Thanks in Advance,

Madhab Sikder