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

Last 7 Days MTD Value

Hello All, I am trying to find a solution, I have table which has the daily sales for each day, and I would like to show what is the MTD Values for the last 7 days in chart ? any help can be provided , Please refer for the screenshot for the sample data of and chart which is expected to be displayed

clipboard_image_0.png

1 Solution

Accepted Solutions
Arthur_Fong
Partner - Specialist III
Partner - Specialist III

There you go:

Build the MTD column using peek() function.

Then, apply set analysis in the chart:

clipboard_image_0.png

Refer qvw attached as reference.

Thanks and regards,

Arthur Fong

View solution in original post

2 Replies
Arthur_Fong
Partner - Specialist III
Partner - Specialist III

There you go:

Build the MTD column using peek() function.

Then, apply set analysis in the chart:

clipboard_image_0.png

Refer qvw attached as reference.

Thanks and regards,

Arthur Fong

Brett_Bleess
Former Employee
Former Employee

Ahmed, did Arthur's post and example get you what you needed?  If so, do not forget to come back and use the Accept as Solution button to mark Arthur's post as correct and give him credit for the help.  

Here are some additional links on Set Analysis that may be helpful in the future as well as another post regarding setting up an As-Of-Table:

https://community.qlik.com/t5/Qlik-Design-Blog/A-Primer-on-Set-Analysis/ba-p/1468344

https://community.qlik.com/t5/Qlik-Design-Blog/The-As-Of-Table/ba-p/1466130

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.