Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
jamiemcc
Contributor III
Contributor III

I want to get the Last 8 weeks Of Data not Including Current Week?

Hi Guys,

 

I want to get the last 8 weeks of Data but i don't want to Include the Current Week.

Here is what i have:

sum({<DailyTaskType = {'Counts'},Tier = {'Tier 1','Tier 0'}, Week = {">=$(=Max(Week)-8)"}>}EstimatedTaskTime*Tasks)

If anyone has any input that would be greatly appreciated. 

Thanking you in advance

 

Jamie

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar

May be just this

Sum({<DailyTaskType = {'Counts'}, Tier = {'Tier 1', 'Tier 0'}, Week = {">=$(=Max(Week)-8)<$(=Max(Week))"}>} EstimatedTaskTime*Tasks)

 

View solution in original post

3 Replies
jamiemcc
Contributor III
Contributor III
Author

 I also Have this 

set Analysis:

sum({<DailyTaskType = {'Counts'},Tier = {'Tier 1','Tier 0'}, Period = {">=$(vPR4Weeks)"}>}EstimatedTaskTime*Tasks)

 

Variable: Let vPR4Weeks = WeekStart(Today()-(7*8));

sunny_talwar

May be just this

Sum({<DailyTaskType = {'Counts'}, Tier = {'Tier 1', 'Tier 0'}, Week = {">=$(=Max(Week)-8)<$(=Max(Week))"}>} EstimatedTaskTime*Tasks)

 

jamiemcc
Contributor III
Contributor III
Author

Thats it, 

 

Thank you so much 🙂

 

Jamie