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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Function for capture date 1 week before.

Hi,

I have dashboard weekly reporting, and the simple table is below:

DateService Quality
01/01/1712
02/01/1713
03/01/1733
04/01/1743
05/01/1772
06/01/1711
07/01/1747
08/01/1767
09/01/1721
10/01/1752

Today : 11/01/17 (for example)

- I want to create a bar chart, but only for 1 week before (04/01/17 - 10/01/17).

I already tried function on this link: https://help.qlik.com/en-US/sense/1.1/Subsystems/Hub/Content/Scripting/DateAndTimeFunctions/DateAndT..., but no function meet with my question.

Thank You.

1 Reply
vinieme12
Champion III
Champion III

create flags in load sript using week() function

https://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/DateAndTimeFunctions/w...

Then in set analysis restrict the week number you want to show data for for example MaX(WeekNum)-1  !!

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.