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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
mshailaja
Contributor III
Contributor III

week chart

i have week chart  from 1 to 52

if the dashboard refresh everyday i want to show the last weeks chart and last 7 days chart. How?

2 Replies
Anonymous
Not applicable

try below:

create weeknumber field

add set analysis to your expression.

For last week something like:

{<Weeknum = ,Weeknum={"=$(=Max(Weeknum)-1)"}>}

For last 7 days something like

{<datenum= ,datenum={">=$(=Max(datenum)-7) <= $(=Max(datenum))"}>}


Hope it helps. Or else if you can share a sample qvw it would be better.

avinashelite

Use Triggers .

Document properties > Triggers > On open > Add the action > select in Field >

Field name > Expression > =Week(Today())