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

Calender Issue

Hi,

I am facing one issue which are explain in detail:

Step1:   I have three seperate Calender all three calender link with Fact table Date field.

             Example:  Calender date (Link_date)

                              Fact Date:  Registration_date, Closed_date and Purchse_date.

Step 2:  I have created seperete Calender1 and pass field as variable.

Step 3:   Expression like this: 

=

count(DISTINCT {<[REGISTRATION DATE]={">=$(monthStartDate) <=$(monthEndDate)"}>} CALL_ID)

monthStartDate: 

=

date(MonthStart(AddMonths(date(max([Link Date])),0)),'DD-MM-YYYY')

monthEndDate:

=date(MonthEnd(AddMonths(date(max([Link Date])),0)),'DD-MM-YYYY')

Problem : when I select [Fiscal month Year]  of seperate Calender1 this is not working.

Please help on this.

Regards

Ravi Gupta

7 Replies
Anonymous
Not applicable
Author

Hi Ravi

Is Calendar1 linked with the fact table?

Could you please upload the tables viewer snapshot?

Regards

MultiView

Not applicable
Author

export.png

er_mohit
Master II
Master II

have you tried like this way   for this field

count(DISTINCT {<[REGISTRATION DATE]={">=$(monthStartDate) <=$(monthEndDate)"},[Fiscal month Year]=>}CALL_ID)

Not applicable
Author

Hi,

Please Find out image.

Common Calender: ( Registration_Date, Closing_date, Purchase_date)  as link Date

fact date field:  Registration_Date, Closing_date, Purchase_date

Seperate Calender: Calender1 and field: [link date]

Expression:  count(DISTINCT {<[REGISTRATION DATE]={">=$(monthStartDate) <=$(monthEndDate)"}>} CALL_ID)

monthStartDate:  date(MonthStart(AddMonths(date(max([Link Date])),0)),'DD-MM-YYYY')

monthEndDate:  date(MonthEnd(AddMonths(date(max([Link Date])),0)),'DD-MM-YYYY')

Pass [link date] as input field and I want to use seperate calender.

Please help.

Regards

Ravi Gupta

Not applicable
Author

Hi,

When I try show data  but data shown wrong.

=

count(DISTINCT {< [Fiscal MonthYear]=, [REGISTRATION DATE]={">=$(vMinDate) <=$(vMaxDate)"}>} CALL_ID)

Please check  image  file.

where output repaering value.

regards

Ravi

Not applicable
Author

Hi ,

Please find output

Total 13 2 15%
Jan-201013215%
Feb-201013215%
Mar-201013215%
Apr-201013215%
May-201013215%
Jun-201013215%
Jul-201013215%
Aug-201013215%
Sep-201013215%
Oct-201013215%
Nov-201013215%
Dec-201013215%
Jan-201113215%
Feb-201113215%
Mar-201113215%
Apr-201113215%
May-201113215%
Jun-201113215%
Jul-201113215%
Aug-201113215%
Sep-201113215%
Oct-201113215%
Nov-201113215%
Dec-201113215%
Jan-201213215%
Feb-201213215%
Mar-201213215%
Apr-201213215%
May-201213215%
Jun-201213215%
Jul-201213215%
Aug-201213215%
Sep-201213215%
Oct-201213215%
Nov-201213215%
Dec-201213215%
Jan-201313215%
Feb-201313215%
Mar-201313215%
Apr-201313215%
May-201313215%
Jun-201313215%
Jul-201313215%
Not applicable
Author

Hi Mohit and Multiview,

I am waiting for your reply.

Regards

Ravi Gupta