Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Start date to today

Hi all,

I have a variable with value as date. I need to get the data from that date to today.

For Ex:

vMinDate = 30/11/2014

count({<DateType = {invitation}, CanonicalDate = {">=$(=vMinDate) <=$(=date(today(),'MM-DD-YYYY'))"}>}invitation_id)

I am not getting where i am wrong in expression.

Regards,

Pramod

15 Replies
sunny_talwar

Tried one of these?

=Count({<DateType = {invitation}, CanonicalDate = {">=$(=Date(vMinDate, 'MM-DD-YYYY')) <=$(=date(today(),'MM-DD-YYYY'))"}>}invitation_id)

OR

=Count({<DateType = {invitation}, CanonicalDate = {">=$(=Date(MakeDate(2014, 11, 30), 'MM-DD-YYYY')) <=$(=date(today(),'MM-DD-YYYY'))"}>}invitation_id)

Not applicable
Author

Not working

Anonymous
Not applicable
Author

Try this:


If you are having like: vMinDate = 30/11/2014


=count({<DateType = {'invitation'}, CanonicalDate = {'>=$(=vMinDate)<=$(=date(today(),'MM/DD/YYYY'))'}>} invitation_id)

Anonymous
Not applicable
Author

=count({<DateType = {'invitation'}, CanonicalDate = {'>=$(vMinDate)<=$(=date(today(),'MM-DD-YYYY'))'}>} invitation_id)

Not applicable
Author

Hi all,

I am attaching the .QVF file please check and help on this.

you can check in Text & image object the variable enovamindate it's printing different.

Count in KPI should be 4939 instead of 4941.

Regards,

Pramod

jagan
Luminary Alumni
Luminary Alumni

HI,

Try like this

let vEnovaMinDate=Date(MakeDate(2014, 11, 30), MM-DD-YYYY);

=Count({<DateType = {invitation}, CanonicalDate = {">=$(=vEnovaMinDate) <=$(=date(Today(), 'MM-DD-YYYY')"}>}invitation_id)

Hope this helps you.

Regards,

Jagan.