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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
james
Creator III
Creator III

SHow last 15 Days of Activity

Has anyone gotten an expression to work where you show the last 15 days worth of activity, i.e revenue.

i was using this sum({$<Year = {$(=only(Year))}, Date= {">=$(=max(Date)-15)"}>} Revenue)

but wasno good

1 Solution

Accepted Solutions
johnw
Champion III
Champion III

Attached file shows doing it with max(Date) using the exact expression I posted earlier, and with vToday by simply replacing max(Date) with vToday.

View solution in original post

6 Replies
johnw
Champion III
Champion III

Probably tell it to ignore the Year and just go on date, and you'll probably need to format as a date. So if Date is in 'MM/DD/YY' format, something like this:

sum({<Year=,Date={">=$(=date(max(Date)-15,'MM/DD/YY'))"}>}Revenue)

james
Creator III
Creator III
Author

John - Thnaks for the reply, it is still is not giving any result

james
Creator III
Creator III
Author

sum

({$<Year = {$(=only(Year))},Date={">=$(=date(max(Date)-15,'MM/DD/YYYY'))"},[Revflag] = {'0'},[RevType] = {'Revenue'} > } [TotalAmount

This expression doesnt seem to work. Yet when you select RevType as a drop down and select Revenue, the data appears.





james
Creator III
Creator III
Author

Anyone know an easy way to show last 15 days activity? Not using Date field but vToday

johnw
Champion III
Champion III

Attached file shows doing it with max(Date) using the exact expression I posted earlier, and with vToday by simply replacing max(Date) with vToday.

james
Creator III
Creator III
Author

John, Thanks!