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

Latest 7 days data...

Hi Expert,

I have a scenario where I have to create a trend chart showing latest 7 days date from ‘EXECUTION DATE’ field.

‘EXECUTION DATE’ fields have random date in it and I want latest 7 days data (not 7 days from today date).

Please help me on this. Thank you in Advance.

Note: I tried ‘Dimension limit’ with largest 7 days but it only shows Sep’s date data.

Best Regards,

Bhavesh

Labels (1)
1 Solution

Accepted Solutions
Not applicable
Author

Hello,

Thank you all for your prompt reply.

Using ‘First 7 values’ instead of ‘largest 7 values’ in Dimension limits solved my issue.

BR,

Bhavesh

View solution in original post

4 Replies
settu_periasamy
Master III
Master III

Hi,

Try something like..

=Sum({<[EXECUTION DATE]={">=$(=Max([EXECUTION DATE],7))"}>}Metric_Field)

Note: Date format should be in proper format

tresB
Champion III
Champion III

=Sum({<[EXECUTION DATE]={">=$(=Date(Max([EXECUTION DATE],7)))"}>}Metric_Field)

jagan
Partner - Champion III
Partner - Champion III

Hi,

Check this link for set analysis expressions for this type of scenarios

Set Analysis for certain Point in Time

=Sum({<[EXECUTION DATE]={">=$(=Date(Max([EXECUTION DATE]) - 6))"}>} MeasureName)

Hope this helps you.

Regards,

Jagan.

Not applicable
Author

Hello,

Thank you all for your prompt reply.

Using ‘First 7 values’ instead of ‘largest 7 values’ in Dimension limits solved my issue.

BR,

Bhavesh