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: 
Anonymous
Not applicable

Conditional Sum Last 7 Days

I'm trying to make the sum of the last 7 days.

I created the variable vUltimos_7dias.

=(Today()-7)


But when I make the sum as follows, it does not spin, I have already tried in several ways:

Sum({<Data = {>={$(vUltimos_7dias)}>}Visitors)


Thanks.

1 Solution

Accepted Solutions
petter
Partner - Champion III
Partner - Champion III

Try this:

Sum( { < Data = { ">=$(vUltimos_7dias)" } > } Visitors )


You might also need to change the vUltimos_7dias to this:


=Date(Today()-7)



View solution in original post

2 Replies
jcarlosmh
Contributor
Contributor

is Data in numeric format or date format? Today()-7 represents as number not as date

petter
Partner - Champion III
Partner - Champion III

Try this:

Sum( { < Data = { ">=$(vUltimos_7dias)" } > } Visitors )


You might also need to change the vUltimos_7dias to this:


=Date(Today()-7)