Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
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))

1 Solution

Accepted Solutions
sunny_talwar

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

An equal sign seem to be missing

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