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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
stevejones1
Contributor III
Contributor III

Is this expression correct?

Hi

Here is my expression to get data for past 5 weeks , i don't want to see current week's data , but with below i can see current weeks data , also i want this expression to be independent of all other selections, can some one please help me in getting correct expression.

Thank you!

CaseOpenDate = {'>$(=WeekStart(Max(Date),-5))<$(Date(WeekStart(Max(Date))))'}

Here is my complete expression :

=count({1<Indicator = {'Created'},CaseOpenDate = {'>$(=WeekStart(Max(Date),-5))<$(Date(WeekStart(Max(Date))))'},CaseType ={'TS'}>} DISTINCT(CaseNumber))

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

An equal sign seem to be missing

=Count({1<Indicator = {'Created'}, CaseOpenDate = {">$(=WeekStart(Max(Date),-5))<$(=Date(WeekStart(Max(Date))))"}, CaseType = {'TS'}>} DISTINCTCaseNumber)

View solution in original post

1 Reply
sunny_talwar
MVP
MVP

An equal sign seem to be missing

=Count({1<Indicator = {'Created'}, CaseOpenDate = {">$(=WeekStart(Max(Date),-5))<$(=Date(WeekStart(Max(Date))))"}, CaseType = {'TS'}>} DISTINCTCaseNumber)