Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to display the Years and months in the master calender that are having data only...

Pls anybody let me how how to display the selection for years and months that are having data.how to disable rest of the selection in master calender

4 Replies
MK_QSL
MVP
MVP

For that, dont create master calendar separately

Create Year and Month fields only in the Fact Table directly...

Not applicable
Author

If you left join your calendar to your fact then it would display as you require but as Manish said there is no point creating a calendar for that just create the fields directly onthe fact

djsampat
Creator II
Creator II

Hi Vasudha,

Set a MIn and Max on the Master Calendar to restrict it to the range as per your data.

MinMax:

LOAD      Max(DocDate) AS MaxDate,

               Min(DocDate) AS MinDate

RESIDENT Periods;

If this helped you, please mark as Helpful. If it solves your issue, please mark as Answer

Regards

Dhruv

Anonymous
Not applicable
Author

Hi,

Create a resident table with year and month with the Keep syntax option to your fact table.

So that it will load years and months which are having data in FACT,

hope this helps

Regards,

Chinna