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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
shumailh
Creator III
Creator III

Set Analysis date filter

Hi All,

I am trying to get the report date which is the last month end date i.e. '09/30/2010'. I put this value in the variable throught the same table where all the Month end date present. please see the below code.


Script:
CardMast_Active:
LOAD Report_NO, LoadDate_Active, LoadDay_Active, bal, AIF FROM [$(Outputpath)CardMast_Active.qvd] (qvd);

MinMaxDates:
load
minstring(LoadDate_Active) as StartDate,
maxstring(LoadDate_Active) as ReportDate
resident CardMast_Active

// now get the values...
let ReportDate = peek('ReportDate',0) ;

Expression:
=COUNT({$<AIF = {'P'}, LoadDate_Active = {$(=Date($(#=ReportDate),'MM/DD/YYYY'))} >} AIF)


The above expression is not working.. [:S] please help

1 Solution

Accepted Solutions
gandalfgray
Specialist II
Specialist II

Hi

Try adding a couple of " like this:

=COUNT({$<AIF = {'P'}, LoadDate_Active = {"=$(=Date($(#=ReportDate),'MM/DD/YYYY'))"} >} AIF)

View solution in original post

2 Replies
gandalfgray
Specialist II
Specialist II

Hi

Try adding a couple of " like this:

=COUNT({$<AIF = {'P'}, LoadDate_Active = {"=$(=Date($(#=ReportDate),'MM/DD/YYYY'))"} >} AIF)

shumailh
Creator III
Creator III
Author

Good Man! u r such a help..cheers & Thanks Smile

Shumail