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

How to create a trend line with data that is updating regularly?

Hello,

I'm trying to create a trend line by month of data that is updating weekly. Below is the calculation used for something to be considered in "compliance". i want to use this to show what was in compliance for each week for the past month, while the other charts update using the weekly data. see picture below for my concern, the most  current week consistently is spiking.

= Count({< WRK_STATUS = {3} >} IF(LoginDate >= Date(Today()-7 , 'MM/DD/YYYY') AND LoginDate <= Date(Today(), 'MM/DD/YYYY'), WRK_STATUS))

Thanks

WS.png

2 Replies
Anil_Babu_Samineni

May be this?

=Count({$< WRK_STATUS = {3}, Month= ,Year = {'$(=Max(Year))'}, LoginDate = {">=$(=Date(Today()-7 , 'MM/DD/YYYY')) <=$(=Date(Today(), 'MM/DD/YYYY'))"} >} WRK_STATUS)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Not applicable
Author

This didn't work, but would this "freeze" the data so it retains historical data while the rest of the file keeps reloading?